[Overview][Constants][Types][Classes][Procedures and functions][Index] Reference for unit 'DBGrids' (#lcl)

TCustomDBGrid.OnUserCheckboxState

Event handler signalled to get a user-specified value for a check box editor on the grid control.

Declaration

Source position: dbgrids.pas line 541

protected property TCustomDBGrid.OnUserCheckboxState : TDbGridCheckboxStateEvent
  read FOnCheckboxState
  write FOnCheckboxState;

Description

OnUserCheckboxState is a TDbGridCheckboxStateEvent property with the event handler signalled to get the checked state for a check box cell on the grid control. Arguments to the handler include the grid control and the TCheckboxState value which can be updated in the routine. Implement and assign a handler routine to the property to respond to the event notification.

OnUserCheckboxState is signalled (when assigned) from the DrawCheckboxBitmaps method. It occurs after the initial value has been assigned for the AState argument. It occurs before DrawGridCheckboxBitmaps is called to draw the check box using the value in AState.

See also

TCustomDBGrid.DrawCheckboxBitmaps

  

Draws a check box bitmap for the specified Boolean column.

TCustomDBGrid.DefaultDrawCell

  

Default method used to drawing a cell at the specified location.

TDbGridCheckboxStateEvent

  

Specifies an event handler signalled to get the user-specified state for a check box column on the grid control.

TCheckboxState

  

Represents the states for a check box.


Version 3.2 Generated 2024-02-25 Home