Syncfusion.Grid.Windows
Example 


Syncfusion.Windows.Forms.Grid Namespace > GridControl Class > ChangeCells Method : ChangeCells(GridRangeInfo,GridStyleInfo[],StyleModifyType) Method

ChangeCells(GridRangeInfo,GridStyleInfo[],StyleModifyType) Method

See GridModel.ChangeCells in the GridModel class for information.
Syntax
'Declaration
 
Public Overloads Function ChangeCells( _
   ByVal range As GridRangeInfo, _
   ByVal cellsInfo() As GridStyleInfo, _
   ByVal modifyType As StyleModifyType _
) As Boolean
'Usage
 
Dim instance As GridControl
Dim range As GridRangeInfo
Dim cellsInfo() As GridStyleInfo
Dim modifyType As StyleModifyType
Dim value As Boolean
 
value = instance.ChangeCells(range, cellsInfo, modifyType)

Parameters

range
cellsInfo
modifyType
Example
This example shows how to use CoveredRanges property.
GridStyleInfo style1 = new GridStyleInfo();
style1.TextColor = Color.Blue;
GridStyleInfo style2 = new GridStyleInfo();
style2.BackColor = Color.Red;
GridStyleInfo[] styles = new GridStyleInfo[] { style1, style2 };
GridRangeInfo range = GridRangeInfo.Rows(1,2);       
this.gridControl1.ChangeCells(range, styles, Syncfusion.Styles.StyleModifyType.Remove);
Dim style1 As GridStyleInfo = New GridStyleInfo
style1.TextColor = Color.Blue
Dim style2 As GridStyleInfo = New GridStyleInfo
style2.BackColor = Color.Red
Dim styles() As GridStyleInfo = New GridStyleInfo() {style1, style2}
Dim range As GridRangeInfo = GridRangeInfo.Rows(1, 2)
Me.gridControl1.ChangeCells(range, styles, Syncfusion.Styles.StyleModifyType.Remove)
AssemblyVersion

Syncfusion.Grid.Windows: 17.2460.0.46

See Also