TcxGridRowLayoutCustomDrawEvent Type
In This Article
The custom draw procedural type for a row layout.
#Declaration
Delphi
TcxGridRowLayoutCustomDrawEvent = procedure(Sender: TcxGridTableView; ACanvas: TcxCanvas; AViewInfo: TcxCustomGridCellViewInfo; var ADone: Boolean) of object;
#Parameters
Name | Type | Description |
---|---|---|
Sender | Tcx |
The grid Table View that raised the event. |
ACanvas | Tcx |
The target Table View’s canvas. |
AView |
Tcx |
Contains the target row’s View |
ADone | Boolean | Assign |
#Remarks
The following OnCustomDrawRowHotTrack event handler changes the default background color of selected rows to green:
procedure TForm1.cxGrid1TableView1RowLayoutCustomDrawRowSelection(
Sender: TcxGridTableView; ACanvas: TcxCanvas;
AViewInfo: TcxCustomGridCellViewInfo; var ADone: Boolean);
begin
ACanvas.Brush.Color := clMoneyGreen;
ACanvas.FillRect(AViewInfo.Bounds);
ADone := True;
end;
The following events of row layout settings reference the TcxGridRowLayoutCustomDrawEvent
procedure type:
See Also