- What is the rect of a clicked Title on a TDBGrid in Delphi?
- type
- ...
- THackedGrid = class(TDBGrid);
- ...
- implementation
- ...
- procedure TForm1.DBGrid1TitleClick(Column: TColumn);
- var
- currRow : Integer;
- rect : TRect;
- begin
- currRow := THackedGrid(DBGrid1).Row;
- rect := THackedGrid(DBGrid1).CellRect(Column.Index+1,currRow);
- end;