Hi
How to remove selected row from UltraGrid ??
Hi princekp,
If you are trying to remove the last row - the one on the bottom of the grid, try this:
// C#yourUltraGrid.Rows[yourUltraGrid.Rows.Count - 1].Delete(); ' VByourUltraGrid.Rows(yourUltraGrid.Rows.Count - 1).Delete()
If you are trying to delete the last few rows from the bottom of the list, try this:
// C#int RowsToDelete = 4;for (int i = 0; i < RowsToDelete; i++){ yourUltraGrid.Rows[yourUltraGrid.Rows.Count - 1].Delete();} ' VBDim RowsToDelete As Integer = 4For i As Integer = 0 To RowsToDelete: yourUltraGrid.Rows(yourUltraGrid.Rows.Count - 1).Delete()Next i
If you are trying to delete all rows, try this:
// C#yourUltraGrid.DeleteSelectedRows();' VByourUltraGrid.DeleteSelectedRows()