WPF datagrid bind to previous row's cell
- by James Price
Hi,
I have a datagrid and one of the columns is going to be a checkbox column. To give the background, the checkbox is going to turn something on / off and each row in the datagrid is going to be for a differernt time (in time order, ascending).
Is it possible for one row's checkbox to be bound to the state of the previous row? That way if somebody turns off at 10am it will continue to be turned off until such a time that it is turned on again.
Hope that makes sense, any help would be great. Sure this sounds like something that should be do-able with databindings just not sure on the way to do it!
Thanks.