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 

row height

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



Joined: 09 Jun 2010
Posts: 21

PostPosted: Wed Jun 09, 2010 2:12 pm    Post subject: row height Reply with quote

I'm new and can't find the answer in the documentation, so is it possible to set the height of the root row to a different height than the other rows. I have all of the rows set to 150 because they hold a standard amount of multiline information, however the root only has one word. So I would like to change the height of that row and keep all of the other rows at 150.

Thanks
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Jun 09, 2010 10:56 pm    Post subject: Reply with quote

Yes this is possible. How you do it depends on the type of binding you are using. If you are using design time (object or dataset) binding then you can select the Row Binding for the root item in the Virtual Tree designer and set the Height property. This means that you need to have a different binding for the root item then what you do for the other items in the tree. If your root item is the same type as all of the other items in your tree and you don't have a separate binding for it then you can create a new binding for the root item (basically a copy except with a different height) and then handle the VirtualTree.GetBinding event to force use of the new binding for the root item only.

If you are using programmatic binding then you can set the e.RowData.Height directly in the VirtualTree.GetRowData event handler.
_________________
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