Title: How to Determine Row number in TDBGrid
procedure TformX.DBGridXDrawColumnCell(Sender: TObject; const
Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState);
var
RowNo : Integer;
begin
RowNo := Rect.Bottom div TStringGrid(DBGridX).DefaultRowHeight
//so, RowNo has the Row to be draw in the moment
...
end;