Home Forums WinForms controls Xceed Grid for WinForms Exception at GridControl.DataRows.Clear() Reply To: Exception at GridControl.DataRows.Clear()

User (Old forums)
Post count: 23064

I don’t know why this happened the way it did, but I had subscribed to the two Sort-related events and the exception was actually caused by my code (I was using GridControl.SelectedRows.ResetTo(row) and “row” did not belong to the grid- the gridcontrol was calling the _Sorted event when I did not expect it to). It took some realy digging, as the exception that was thrown was misleading and I had to get creative in finding the solution.

Imported from legacy forums. Posted by evang (had 1228 views)