Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Can't update control in the tree

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
IncProg



Joined: 30 Apr 2009
Posts: 6

PostPosted: Mon Sep 24, 2012 9:35 am    Post subject: Can't update control in the tree Reply with quote

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
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Mon Sep 24, 2012 10:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group