Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
230
Changing the value of a xamGrid cell in code
posted

I have a xamGrid with editing disabled. One of the columns contain checkboxes and I want to change the value of the check box in the cell click event. Is it possible? If so, how?

 

Thanks.

Parents
  • 21382
    Suggested Answer
    posted

    In the cell click one of the arguments off the event args should be e.Cell.  From the cell you can get to the row object and from there the .Data property which would be the object that the row represents

    e.Cell.Row.Data.

    You could change the value on your data object that way.   As long as your object is implementing INotifyPropertyChanged then you should see the change reflected in the grid.

Reply Children