C# Show Entity Model's Specific Columns on DataGrid

118 Views Asked by At

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
0

There are 0 best solutions below