Home › Forums › WinForms controls › Xceed Grid for WinForms › Setting a cell value
How can I set the value of a cell by using a row number and a column number to reference the cell?
Thanks for any help.
Imported from legacy forums. Posted by Jonathan (had 1952 views)
Using C#<code>int RowNumber = 0;int ColumnNumber = 0;gridControl1.DataRows[RowNumber].Cells[ColumnNumber].Value = “NewValue”;</code>
Using VB.NET<code>Dim RowNumber As Integer = 0 Dim ColumnNumber As Integer = 0 gridControl1.DataRows(RowNumber).Cells(ColumnNumber).Value = “NewValue” </code>
Imported from legacy forums. Posted by CharlesB (had 2970 views)