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 cellInfo As GridStyleInfo, _
   ByVal modifyType As StyleModifyType _
) As Boolean
'Usage
 
Dim instance As GridControl
Dim range As GridRangeInfo
Dim cellInfo As GridStyleInfo
Dim modifyType As StyleModifyType
Dim value As Boolean
 
value = instance.ChangeCells(range, cellInfo, modifyType)

Parameters

range
cellInfo
modifyType
Example
This example shows how to change the cell values with the specified style and range.
// Defining the new cell styles.
GridStyleInfo newStyle = new GridStyleInfo();
newStyle.CellType = GridCellTypeName.ComboBox;
// Setting the styles of range of cells to new style.
this.gridControl1.ChangeCells(GridRangeInfo.Rows(1, 2), newStyle, Syncfusion.Styles.StyleModifyType.Changes);
Dim newStyle As GridStyleInfo = New GridStyleInfo
newStyle.CellType = GridCellTypeName.ComboBox
' Setting the styles of range of cells to new style.
Me.gridControl1.ChangeCells(GridRangeInfo.Rows(1, 2), newStyle, Syncfusion.Styles.StyleModifyType.Changes)
AssemblyVersion

Syncfusion.Grid.Windows: 17.1460.0.47

See Also