Syncfusion.Grid.Windows


Syncfusion.Windows.Forms.Grid Namespace > GridModel Class > SetCellInfo Method : SetCellInfo(Int32,Int32,GridStyleInfo,StyleModifyType) Method
The row index.
The column index.
The GridStyleInfo object that holds cell information.
A Syncfusion.Styles.StyleModifyType that specifies the style operation to be performed.

SetCellInfo(Int32,Int32,GridStyleInfo,StyleModifyType) Method

Determines whether changes the cell contents at a specific row and column index.
Syntax
'Declaration
 
Public Overloads Function SetCellInfo( _
   ByVal rowIndex As Integer, _
   ByVal colIndex As Integer, _
   ByVal style As GridStyleInfo, _
   ByVal modifyType As StyleModifyType _
) As Boolean
'Usage
 
Dim instance As GridModel
Dim rowIndex As Integer
Dim colIndex As Integer
Dim style As GridStyleInfo
Dim modifyType As StyleModifyType
Dim value As Boolean
 
value = instance.SetCellInfo(rowIndex, colIndex, style, modifyType)

Parameters

rowIndex
The row index.
colIndex
The column index.
style
The GridStyleInfo object that holds cell information.
modifyType
A Syncfusion.Styles.StyleModifyType that specifies the style operation to be performed.

Return Value

A System.Boolean that indicates if the operation was successful.
Remarks
SetCellInfo(Int32,Int32,GridStyleInfo,StyleModifyType) is more low-level than using ChangeCells(GridRangeInfo,GridStyleInfo[],StyleModifyType) or Item.

It provides a faster solution to change cell contents compared to changing cells with ChangeCells(GridRangeInfo,GridStyleInfo[],StyleModifyType) or Item. It will not repaint any cells and also not try to generate undo information.

AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also