Grid.DeleteRow

Grid.DeleteRow ( 

string  ObjectName,

number  Row,

boolean Redraw = true )

Example 1

-- Delete the top row
Grid.DeleteRow("Grid1", 0, true);

Deletes the top row

Example 2

-- Get the number of rows
totalRows = Grid.GetRowCount("Grid1");
-- Delete the bottom row
Grid.DeleteRow("Grid1", totalRows -1, true);
-- note: the -1 is because the rows in the grid are zero based.

Deletes the bottom row

See also:  Related Actions