Home Forums WinForms controls Xceed Grid for WinForms Setting a cell value

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #15929 |

    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)

    Xceed Support
    Member
    Post count: 5658

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.