RowCount
Specify total number of rows inside grid. It also include non-visible, collapsed and filtered rows.property RowCount: Integer read GetRowCount write SetRowCount default 0;
Example:
for i := 0 to NextGrid61.RowCount - 1 do
begin
NextGrid61.Cell[2, i].AsInteger := 0;
end;