function DeleteRow() {
// Row deletion needs to be allowed
igtbl_getGridById("UltraWebGrid1").AllowDelete=1;
// Get the first row in the grid
var row=igtbl_getRowById("UltraWebGrid1r_0");
// Delete the first row in the grid
igtbl_deleteRow("UltraWebGrid1","UltraWebGrid1r_0");
// Create a counter for the row id
var cnt=0;
// Create a loop, if the row has a next sibling then we need to delete it
while(row.NextSibling!=null)
{
// Increment the counter for the next rowID
cnt+=1;
// Get the row current row using the name of the grid and the row
// number from our counter so we can check it for a sibling
row=igtbl_getRowById("UltraWebGrid1r_"+cnt)
// Finally delete that row,
igtbl_deleteRow("UltraWebGrid1","UltraWebGrid1r_"+cnt);
}
}