I have a list where one item have 4 different elements
Item
Id int
Name String
Value String
Enable bool
I want to Bind the List<item> to a gridview. Currently I am displaying all the items. But I want to display only the Name and Enable fields only.
What is the easy way of doing this? Without creating new list
Thanks
Also check out the example to bind GridView using LINQ