Home Forums WinForms controls Xceed Grid for WinForms How to change cell value?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #17743 |
    I want to change the selected row's cell value in a function changecellvalue(). 
    I call that function from GridControl2_SelectedRowsChanged event.
    I tried to set a value for a cell using the following code. But its not working. Please help me. 
    Dim dr As Xceed.Grid.DataRow = Me.GridControl2.SelectedRows(0)
    dr.Cells("Warnings").ReadOnly = False
    dr.Cells("Warnings").Value = "Warning text"
    Thanks ,

    Imported from legacy forums. Posted by MONOLISA (had 2240 views)

    Diane [Xceed]
    Post count: 1353

    Hi Monolisa,

    We were unable to reproduce the issue. Your code worked fine in our StarterGrid sample (see attached project).

    If you are still having problems, we would need a small stand-alone test project that reproduces the issue in order to investigate further. Please send it to support@xceed.com with a link to this forum thread for reference. Thank you.

    Imported from legacy forums. Posted by Diane [Xceed] (had 864 views)

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