[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Event handler signalled to set the state for a checkbox cell.
Source position: grids.pas line 1417
protected property TCustomDrawGrid.OnSetCheckboxState : TSetCheckboxStateEvent |
OnSetCheckboxState is a TSetCheckboxStateEvent property with the event handler signalled to set the state for a checkbox cell. The ACol and ARow parameters contain the position for the cell. Value contains the TCheckBoxState value stored in the cell.
OnSetCheckboxState provides the only mechanism to set the state value for a Checkbox cell in TCustomDrawGrid / TDrawGrid. This differs from TCustomStringGrid / TStringGrid, where the TGridColumn instance in Columns can is used (when enabled) to get the checked or unchecked value and determine the state value stored in the cell. This approach can be implemented in the event handler; it is not provided by default.
OnSetCheckboxState is signalled (when assigned) from the SetCheckBoxState method.
Use OnGetCheckboxState to get the state for the CheckBox cell.