Syncfusion.Grid.Windows
Example 


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

ChangeCells(GridRangeInfo,String) Method

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

Parameters

range
textValue
Example
This example shows how to change the cell values with the specified text and range.
// The target range to set the text.
GridRangeInfo range = GridRangeInfo.Cols(1, 2);
            
//Setting the "SampleData" text to target range.
this.gridControl1.ChangeCells(range, "SampleData");
' The target range to set the text.
Dim range As GridRangeInfo = GridRangeInfo.Cols(1, 2)
            
'Setting the "SampleData" text to target range.
Me.gridControl1.ChangeCells(range, "SampleData")
AssemblyVersion

Syncfusion.Grid.Windows: 17.3460.0.26

See Also