Skip to main content

Change the value of cell

Comments

1 comment

  • Dapfor Team

    Hi,
    You have many possibilities:
    1.

    Cell cell = grid.Rows[iRowIndex][iColumnIndex];
    cell.Value = newValue;

    2. If you use objects is an instance of a custom class, you can use:

    Row row = grid.Rows[iRowIndex]; 
    YourClass yourObject = (YourClass)row.DataObject;

    //Do something with the object
    ...

     

    If the YourClass implements INotifyPropertyChanged, the grid will get notifications automatically. (In case of sorting, filtering, grouping it updates the content and row's position if needed). Otherwise, you can call row.Update() to update these operations.

    Regards,
    Dapfor

    0

Please sign in to leave a comment.

Powered by Zendesk