DrawCellBackground Event
Occurs for every cell before the grid draws the background of a specified cell.
Syntax
'Declaration <DescriptionAttribute("Occurs for every cell that is being drawn.")> <CategoryAttribute("Behavior")> Public Event DrawCellBackground As GridDrawCellBackgroundEventHandler
'Usage Dim instance As GridControlBase Dim handler As GridDrawCellBackgroundEventHandler AddHandler instance.DrawCellBackground, handler
[Description("Occurs for every cell that is being drawn.")] [Category("Behavior")] public event GridDrawCellBackgroundEventHandler DrawCellBackground
Event Data
The event handler receives an argument of type GridDrawCellBackgroundEventArgs containing data related to this event. The following GridDrawCellBackgroundEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel | (Inherited from System.ComponentModel.CancelEventArgs) |
ClipBounds | Gets the visible cell area excluding cell parts that are scrolled out of view. |
Graphics | Gets Graphics context. |
IsBannered | Gets a value indicating whether this is a bannered cell. |
IsClipped | Gets a value indicating whether the graphics canvas already clips the drawing contents. |
IsColored | Gets a value indicating whether colored background should be drawn or black and white (see GridProperties.BlackWhite. |
Range | Gets the cell's range. Can be several rows or columns if cell is a covered, floated, merged, or bannered cell. |
Style | Gets the style object associated with that cell. |
TargetBounds | Gets Cell boundaries including borders and margins. |
Remarks
See GridDrawCellBackgroundEventArgs for more detailed discussion.
AssemblyVersion
Syncfusion.Grid.Windows: 17.3460.0.26
See Also