I have a multilevel tree view, where only the lowest level has really interesting information. I'd like to show only the headers for the lowest level, and I'd like to show them at the top of the tree (and ideally, not scrolling). Is there any way to do that?
Thanks, Aaron
Hi Aaron.
I am not sure i completely understand what you are trying to do?
Do you want to hide the top level headers and its data and only show the lowest level?
Is it possible for you to give me some more information about what you are trying to achieve? Or even an image of what you want to do will help.
Thanks
Well, if I could give an image, I'd be done. :-)
What I'd like is this:
Name Address Phone+Group 1 Fred 10 Main St 123-4567 George 20 Main St 890-1234+Group 2 Henry 30 Main St 567-8901
In other words, we show only a single set of headers, at the top of the tree (and ideally, not scrolling with the tree). That set of headers comes from the column set of the *lowest* level of the tree.
Is that clearer?
Hi Aaron,
Thanks for getting back to me with some more information. Now i can see what you are trying to achieve.
The wintree does not have any built in functionality to do this. I suggest you try using the Wingrid with Grouping. WinGrid will allow you to fix the header and you can also have more control of the layout using RowLayouts. Here is some links to the winGrid if you want to have a look:
http://help.infragistics.com/NetAdvantage/WinForms/2010.1/CLR2.0/?page=WinGrid.html
http://help.infragistics.com/NetAdvantage/WinForms/2010.1/CLR2.0/?page=WinGrid_Control_the_Placement_of_Headers.html
http://help.infragistics.com/NetAdvantage/WinForms/2010.1/CLR2.0/?page=WinGrid_Row_Layouts.html
If you really want to do this using the WinTree it won’t be easy but there are a couple of things you could manually try doing.
You could add 3 labels on top of theWinTree align them to sit on the WinTree correctly. You can also consider using Creation or Draw filters.
I also found the following post for repositioning nodes:
http://community.infragistics.com/forums/p/30943/170499.aspx#170499
I am just following up on this issue.
Does the information above help?
I don't think that will is possible.You might be able to do this with draw filter or creation filter but it may be tricky. I think i may have given you some links above on draw filters.
I probably will when I get back to it, but that won't be for at least a week. In the meantime, a thought - is there a way for me to move the headings to an absolute location within the control's window? I'm thinking that I could just shove them all straight up to the top of the control and let them stack on top of one another - that way, only one would be visible, they'd still align with the columns, and the sorting and resizing behavior would still work.
Do you need any more assistance with this issue?
Ok thanks for letting me know.
I will try follow up with you next week or so to see if you need any more assistance.
Thanks - haven't gotten to try it yet. I'll follow up later when I do.
Aaron