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 

How can I select rows proramaticly

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





PostPosted: Wed Jun 14, 2006 4:57 pm    Post subject: How can I select rows proramaticly Reply with quote

I want to select rows from code.
For example I want to select rows with errors.
Back to top
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Jun 14, 2006 10:27 pm    Post subject: Reply with quote

Yes you can select rows programatically. The simplest way is to set the SelectItems property to a list of those items displayed in the rows you want selected. This requires you to have properly setup the Parent property in your RowBindings (or handled the GetParent event) so that Virtual Tree is able to locate the row that corresponds to a given item. An alternative is to add/remove or clear the selection using SelectedRows collection property. This requires you to first find the rows using FindRow or FindRowByIndex.
_________________
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