Reputation: 13
I have an editable grid for invoices and a few checkbox columns like invoice, sent to customer / ok to invoice. I have fields updated by/updated on for these boolean fields.
I want to update these two columns if checkbox values have been changed. I am not sure how can I do this. Any help?
Upvotes: 1
Views: 1647
Reputation: 3879
The way that I do this is by implementing the INotifyPropertyChanged interface for the SelectedItem property of the DataGrid. Perfect for "I want to update these two columns if checkbox values have been changed".
If you need code just let me know.
Upvotes: 1
Reputation: 1608
In the screen designer for the page select the property from the query (on the left) that represents the checkbox. Then click the drop down next to the "write code" link and implement the method for xxx_Changed.
Here you can then set values for your other fields based on this input.
Upvotes: 1