I’ve an UltraWebGrid set as hierarchical and contains 2 bands. By default, the column header of the parent band will only show at the top of the grid, while the child band column header will be shown under every parent record which contains child record(s). I’m struggled to enable the grid to show the parent column header for every parent record. Any solution on this? Thanks!
Hello pvhhkit ,
You can hide all the child headers and you can use the multi-column header feature to achieve that layout by adding an unbound column header to the parent band.
Follow the link:
http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=WebGrid_Using_a_Multi_Column_Header.html
There're you'll see explanation on how to achieve this layout.
Let me know if you need further assistance regarding this issue.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
Hi,
The default lauout of the grid is
Parent row olumn header
1st parent row
Detail row column header
1st detail row of 1st parent
2nd detail row of 1st parent
2nd parent row
1st detail row of 2nd parent
2nd detail row of 2nd parent
Could we adjust the column header of parent and detail row as the followings. The column header of parent row and details row are displayed once for the whole grid.
Thanks
I’m not very sure if I understood correctly your question. Could you perhaps send picture of what you would like the layout for the grid to be like?
The default behavior of the grid is to show headers for every child band and currently there’s no such functionality to show the header for only one of the child bands.
You could still simulate this by hiding all the headers for the child bands and then adding a new row in InitializeRow event of the grid and using that row as a header like suggested in the thread I’ve referred to earlier.
Let me know if I can further assist you or if I misunderstood your request.
We have header for every detail band. How can be set to make detail header to be displayed once for the whle grid (same as header of parent row only for whole band)?
I'm just following up to see if you need any further assistance with this issue.
Let me know if you have any concerns or questions.