After getting list<DirectoryEntry>, how do I bind to Grid control?
Posted on 2014-12-16
Hi, I'm using VS2012, asp.net and C#.
I need to allow users to edit just a couple of columns data in this grid. Is Grid control the best one to use for this purpose?
After retrieving a user group, I want to list each users(some attribute information about each user) in this grid control. My code uses generic collection or maybe I should use array? How can I bind the grid data source to all users object I retrieved? Example code or url? Thank you.
List<DirectoryEntry> genericAccounts = new List<DirectoryEntry>();
foreach (object groupMember in (IEnumerable<object>)members)
DirectoryEntry member = new DirectoryEntry(groupMember);