Grid.GetRowCount

number Grid.GetRowCount ( 

string ObjectName )

Example 1

-- 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