Home Forums WinForms controls Xceed Grid for WinForms Got exception when try to delete selected row….. Reply To: Got exception when try to delete selected row…..

User (Old forums)
Member
Post count: 23064

Your code is wrong.

Try this instead:
IF GridControl1.SelectedRows.Count > 0 then
. . . For I as integer = GridControl1.SelectedRows.Count to 1 Step -1
. . . . . . GridControl1.SelectedRows(I – 1).Remove
. . . Next
End If

Imported from legacy forums. Posted by Rock (had 4085 views)