WPF datagrid bind to previous row's cell
Posted
by James Price
on Stack Overflow
See other posts from Stack Overflow
or by James Price
Published on 2010-03-31T13:30:07Z
Indexed on
2010/03/31
13:33 UTC
Read the original article
Hit count: 392
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.
© Stack Overflow or respective owner