JVCL Help:TJvDBGrid.DrawColumnCell@TRect@Integer@TColumn@TGridDrawState
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: TJvDBGrid.DrawColumnCell Method
[+] TJvDBGrid Events
[+] TJvDBGrid Fields
[+] TJvDBGrid Methods
[+] TJvDBGrid Properties
Search in JVCL Help
Search in all projectsSummary
The text for this method has been generated automatically.
Pascal
procedureDrawColumnCell(constRect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState); override;
Description
Example:
procedure TEmbedForm.JvDBGrid2DrawColumnCell(Sender: TObject; const Rect: TRect; DataCol: Integer; Column: TColumn; State: TGridDrawState); var grid: TJvDBGrid; begin grid := sender as TJvDBGrid; if(not (gdFocused in State)) or (not (gdSelected in State)) then begin if (grid.DataSource.DataSet.FieldByName('ID_E03').AsInteger = DetailIDE031) or (grid.DataSource.DataSet.FieldByName('ID_E03').AsInteger = DetailIDE032) then begin grid.Canvas.Brush.Color := clSkyBlue; end; end; grid.DefaultDrawColumnCell(Rect, DataCol, Column, State); end;
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page