Syncfusion.Grid.Windows


OptimizeDrawBackground Property

Gets or sets a value indicating whether the grid's painting routines have a built-in optimization where it combines cells that have the same background to be drawn with one paint operation instead of drawing the background for each cell individually.
Syntax
'Declaration
 
<CategoryAttribute("Grid")>
<DescriptionAttribute("Enables built-in optimization that allows grid to combine background drawing for cells that have the same background.")>
<DefaultValueAttribute()>
Public Property OptimizeDrawBackground As Boolean
'Usage
 
Dim instance As GridControlBase
Dim value As Boolean
 
instance.OptimizeDrawBackground = value
 
value = instance.OptimizeDrawBackground
[Category("Grid")]
[Description("Enables built-in optimization that allows grid to combine background drawing for cells that have the same background.")]
[DefaultValue()]
public bool OptimizeDrawBackground {get; set;}
Remarks
The property is true by default. The optimization causes the DrawCellBackground event to be hit for every cell and also change the background color of a style object within a OnDraw operation to be ignored.

You should set it False if this is an issue for you. Or you could also try setting GridStyleInfo.Interior be set to BrushInfo.Empty to force DrawCellBackground be called for cells.

AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.14

See Also