I’m trying to bind a DataGridView to a MembershipUserCollection but the grid refused to show any users even though there are records in the database.
according to my research on the internet I did the following:
MembershipUserCollection x = Membership.GetAllUsers();
gvUsers.DataSource = x;
Appreciate your Help.
The problem is that the object you bind to needs to implement one of these interfaces
IListIListSourceIBindingListIBindingViewWhereas MembershipUserCollection only implements
ICollection.One solution would be to create a wrapper/adapter which implements one of these interfaces.
This might work, can’t test it atm.