DrawCellButtonBackground Event

Occurs for every button in every cell before the grid draws the background of a cell button.
<DescriptionAttribute("Occurs for every cell that is being drawn.")>
Public Event DrawCellButtonBackground As GridDrawCellButtonBackgroundEventHandler
Dim instance As GridControlBase
Dim handler As GridDrawCellButtonBackgroundEventHandler
AddHandler instance.DrawCellButtonBackground, handler
[Description("Occurs for every cell that is being drawn.")]
public event GridDrawCellButtonBackgroundEventHandler DrawCellButtonBackground
Event Data

The event handler receives an argument of type GridDrawCellButtonBackgroundEventArgs containing data related to this event. The following GridDrawCellButtonBackgroundEventArgs properties provide information specific to this event.

Gets the System.Drawing.Rectangle with the bounds.  
Gets the GridCellButton to be drawn.  
Gets a ButtonState that specifies the current state.  
(Inherited from System.ComponentModel.CancelEventArgs)
Gets the System.Drawing.Graphics context of the canvas.  
Gets the GridStyleInfo object that holds cell information.  
See GridDrawCellButtonBackgroundEventArgs for more detailed discussion and also an example.

Syncfusion.Grid.Windows: 17.4460.0.39

See Also