Home Forums WinForms controls Xceed Grid for WinForms Current Row Changed Grid Event Reply To: Current Row Changed Grid Event

Xceed Support
Member
Post count: 5658

When you do a sort, the CurrentRow is re-assign to the first row in the grid. There may be, at some point, a state at which the CurrentRow is null and that is why it may not render itself properly. In the CurrentRowChanged event, you could add a condition:

e.g.,
if(CurrentRow != null)
{//…}

Imported from legacy forums. Posted by CharlesB (had 3260 views)