Hi,
I have an ultragrid with a multiple bands as datasource, and i don't know how to make it to look like in attached image.
The orange area is the data from band[0].
The red area is the data from Band[1].
First, is it possible to make two bands to look like so? (i mean somehow merged, the default appearance is like a tree)
I'm also thinking to another solution - a grid for orange areas, and another grid in a cell of the previous grid, in order to create the red area.
As a note, the red area should behave and look like a grid.
Please, give me any advice how to implement this.
Thanks
Hello Codrut,
Thank you for posting in our forum.
Yes you can achieve such design with UltraGrid. What you need is to create a custom row layout for your Band[0]. More about RowLayout you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2012.1/CLR2.0/html/WinGrid_Work_with_Row_Layouts.html.
I have created for you a small sample solution implementing this logic. Please check my sample and let me know if this is what you are looking for or if I am missing something.
Thank you for using Infragistics Controls.
Hello Milko,
Thanks for your quick reply.
Related to my initial question, i work a bit with row layout, and i got that hierarchical structure (tree view with "+" for expanding), but my question is if i could create an UI like in attached image?
As you can see, there is a orange border, and the two bands are "merged", no "+" for expanding/collapse the second band.
Is that possible?
Thank you for your feedback.
Regarding the + signs (expansion indicators) you can hide them by setting the ExpansionIndicator property of the layout override to Never. More about ExpansionIndicator you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2015.1/CLR4.0/html/Infragistics4.Win.UltraWinGrid.v15.1~Infragistics.Win.UltraWinGrid.ShowExpansionIndicator.html.
Regarding orange rectangle around each band and row connectors you need to implement IUIElementDrawFilter interface in order to achieve this. You can check my revised sample where I have implement this approach. More about the draw filter you may find by following the next link http://help.infragistics.com/Help/Doc/WinForms/2015.1/CLR4.0/html/Infragistics4.Win.v15.1~Infragistics.Win.IUIElementDrawFilter.html.
Please let me know if you need any additional information.