Behavior of properties Row, RowCount, TopRow of DBgrids
Original Reporter info from Mantis: Selzig HEM
-
Reporter name:
Original Reporter info from Mantis: Selzig HEM
- Reporter name:
Description:
Hello,
I don't know if it is a bug.
{type
TPublicCustomGrid =class(TCustomGrid);
//or TPublicCustomGrid=class(TCustomDBGrid);}
ShowMessage(IntToStr(TPublicCustomGrid(DBGrid1).RowCount) + ' - ' +
IntToStr(TPublicCustomGrid(DBGrid1).VisibleRowCount) + ' - ' +
IntToStr(TPublicCustomGrid(DBGrid1).TopRow) + ' - ' +
IntToStr(TPublicCustomGrid(DBGrid1).Row) + ' - ' +
IntToStr(DBGrid1.DataSource.DataSet.RecordCount));
ShowMessage returns : 16 - 15 - 1 - x - 2993 ( with 0 < x < 16 whatever RecNo).
Is this normal behavior ? In this case, what is the use of the properties Row, RowCount ?
Regards.
Mantis conversion info:
- Mantis ID: 19935
- Version: 0.9.31 (SVN)