Syncfusion.Grid.Windows
Example 


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

ChangeCells(GridRangeInfo,GridStyleInfo) Method

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

Parameters

range
cellInfo
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);
' Defining the new cell styles.
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)
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also