delPiero
2014-04-17T03:58:46Z
I am trying to remove selected rows without.. please let me know how to do it correctly..
I selected 1,3,5,7 and it removed 1,5

If iGridSample.SelectedRows.Count > 0 Then
    For Each selRow As iGRow In iGridSample.SelectedRows
        selRow.Grid.Rows.RemoveAt(selRow.Index)
    Next
End If
Igor/10Tec
2014-04-17T14:00:31Z
If you remove a row, the row indices for the rows below are shifted (decreased) by 1 after every row deletion. To remove selected rows properly, you need to enumerate them from bottom to top:

For i As Integer = iGridSample.SelectedRows.Count - 1 To 0 Step -1
   iGridSample.Rows.RemoveAt(iGridSample.SelectedRows(i).Index)
Next
delPiero
2014-04-17T14:09:32Z
it worked, thanks a lot!