I am use ADO.NET Entity Data Model in my desktop application.And I want show my table's datas on dataGridView.But only specified columns.
For Example ;
Columns Of My Table = (ID,Number,Phone,Location,CreateDate,CreateUser)
I want show only (Number,Phone,Location) on dataGridView.
My Record :
ID = 1
Number = 123
Phone = 078424
Location = Turkey
CreateDate = 2020-03-09
CreateUser = admin
My Data Grid will show :
Number Phone Location
------- ---------- ---------
123 078424 Turkey
dataGrid.source = entity.MyTable.ToList()get all columns