Syncfusion.Windows.Forms.Grid Namespace : GridDrawCellBackgroundEventArgs Class

GridDrawCellBackgroundEventArgs Class

Provides data about the cancelable DrawCellBackground event.
Object Model
GridDrawCellBackgroundEventArgs ClassGridRangeInfo ClassGridStyleInfo Class
Public NotInheritable Class GridDrawCellBackgroundEventArgs 
   Inherits Syncfusion.ComponentModel.SyncfusionCancelEventArgs
Dim instance As GridDrawCellBackgroundEventArgs
public sealed class GridDrawCellBackgroundEventArgs : Syncfusion.ComponentModel.SyncfusionCancelEventArgs 
GridDrawCellBackgroundEventArgs is a custom event argument class used by the DrawCellBackground event to allow custom drawing of a cell's background. Set the Cancel property true if you have drawn the cell's background and do not want the grid to proceed with default drawing of the cell's background.

The event will automatically be called for covered cells and bannered cells. For regular cells, you can force this event by assigning BrushInfo.Empty to the GridStyleInfo.Interior property of a GridStyleInfo.

Otherwise this event will not be called for regular cells because of internal drawing optimizations within the grid. By default the grid optimizes drawing such that the background of neighboring cells with the same color are drawn in one operation.

Inheritance Hierarchy



Syncfusion.Grid.Windows: 18.1460.0.52

See Also