code_junkie

Counting the rows in a TDbGrid

Nov 12th, 2011
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. DBGrid1.DataSource.DataSet.RecordCount
  2.  
  3. type
  4. TDummyGrid = class(TDBGrid);
  5.  
  6. RowCount := TDummyGrid(MyDBGrid).RowCount;
  7. VisibleRowCount := TDummyGrid(MyDBGrid).VisibleRowCount;
Add Comment
Please, Sign In to add comment