View previous topic :: View next topic |
Author |
Message |
IncProg
Joined: 30 Apr 2009 Posts: 6
|
Posted: Mon Sep 24, 2012 9:35 am Post subject: Can't update control in the tree |
|
|
Hello
I'm using virtual tree with a control "CheckBox" inside.
In some cases I'm changing the boolean value from inside (programmatically) in the class attached to the tree. But the check box is not changing the value.
I'm tried to refresh the row with:
Code: | treeItems.UpdateRowData(treeItems.SelectedRow); |
but that's don't help. |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Mon Sep 24, 2012 10:53 pm Post subject: |
|
|
How are you trying to change the CheckBox value?
The right way to do this is to change the data value that the cell containing the CheckBox is bound to - and then if necessary call UpdateRowData. This will cause Virtual Tree to update the cell (and the editor control) from the data. _________________ Infralution Support |
|
Back to top |
|
|
|