how to display only a few columns after databind to a gridview control?
Posted on 2014-12-19
Hi, I'm using VS2012, C# and asp.net.
I have a collection, List<UserPrincipal>, that I use as a datasource and binded to the gridview, by code. I only want to show 6 columns of data and allow users to edit only 5 of those columns. How can I do that? Is gridview the best control to use for this? Users should be able to update the userPricipal object in edit. How to do that too?