Reputation: 733
I'm using a Telerik for WinForms RadGridView, I set the datasource to a custom list of objects and I enable the columnreordering. It works fine on the frontend, but if I go to select a row and read a value, it returns the vaule of the initial ordering not the actual one I see on the screen.
Upvotes: 0
Views: 613
Reputation: 4735
Nearly all 3rd party grid controls (not just WinForms) don't manipulate the underlying data source when sorts, column reordering, filter etc. are done on them. These are just display only features.
You should just read the column value via the key not index so that it will never matter what order the user puts a column in.
Upvotes: 1