Syncfusion.Grid.Windows
Members 


Syncfusion.Windows.Forms.Grid Namespace : GridDrawCellBackgroundEventArgs Class

GridDrawCellBackgroundEventArgs Class

Provides data about the cancelable DrawCellBackground event.
Object Model
GridDrawCellBackgroundEventArgs ClassGridRangeInfo ClassGridStyleInfo Class
Syntax
'Declaration
 
Public NotInheritable Class GridDrawCellBackgroundEventArgs 
   Inherits Syncfusion.ComponentModel.SyncfusionCancelEventArgs
'Usage
 
Dim instance As GridDrawCellBackgroundEventArgs
public sealed class GridDrawCellBackgroundEventArgs : Syncfusion.ComponentModel.SyncfusionCancelEventArgs 
Remarks
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

System.Object
   System.EventArgs
      System.ComponentModel.CancelEventArgs
         Syncfusion.ComponentModel.SyncfusionCancelEventArgs
            Syncfusion.Windows.Forms.Grid.GridDrawCellBackgroundEventArgs

AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also