View previous topic :: View next topic |
Author |
Message |
morgenweck
Joined: 09 Jun 2010 Posts: 21
|
Posted: Wed Jun 09, 2010 2:12 pm Post subject: row height |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Jun 09, 2010 10:56 pm Post subject: |
|
|
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 |
|
|
|