DataSet当前行,不是当前选中的行
int arow = 0;
arow = cds1->RecNo;
arow = cds1->RecordCount;
arow = DBGridEh1->DataRowToRecNo(DBGridEh1->Row);//接近靠谱
arow = DBGridEh1->TopRow;
arow = DBGridEh1->TopRowOffset;
arow = DBGridEh1->DataRowCount();
arow = DBGridEh1->VisibleRowCount;
arow = DBGridEh1->Row;//接近靠谱
arow = DBGridEh1->RowCount;
当grid下拉滚动条时就不准确了
原文:http://www.cnblogs.com/cb168/p/3881136.html