I searched CP, and could not find anything that was useful. Here is my issue:
I have a custom class,
NetworkGroup, representing data on security groups from Active Directory. Nothing fancy, just the display name, description, path and a value stored in
extensionattribute10. A second class,
NetworkGroupList, inherits from
I am using an instance of
NetworkGroupList as the data source for a read-only
DataGridView and it works fine, with one annoyance: clicking on the column headers does not sort the data. The
SortMode property on the columns are set to
Automatic by default; I have gone so far as to set them programmatically. Makes no difference: my class lacks some functionality that allows the grid to auto-sort by column. Similar grids bound to
DataTable objects sort just fine, and I have considered manually copying the list into a table and using that, which seems overkill. I have tinkered with the
BindableList(Of T) class, with no luck: documentation is very spotty, and for the work involved, it seems that building a data table would be much easier.
Any suggestions on how to proceed?