Home › Forums › WinForms controls › Xceed Grid for WinForms › An attempt was made to select a row that does not belong… › Reply To: An attempt was made to select a row that does not belong…
This is not a bug. What happens is that a row is selected at MouseDown, then the refresh code executes, which recreates all the rows, then the grid tries to reposition itself to the row it got at MouseDown, but this row does not exist anymore.
It is important not to reset the grid at that moment. A possible solution would be to subscribe to the Application.Idle event when your are ready to refresh the grid, then in the event handler unsubscribe to the Idle event, and execute the refresh code right way.
Imported from legacy forums. Posted by André (had 500 views)