Hi all,
In my grid i have binded hierarchical data (4 level). Everything working fine.
Think my grid have 10 rows. If i expand the 3rd rows in my grid, it is expanded.
After that, it is very difficult to match cell values and column header from 4th rows. Because of the 3rd exapanded record. It leads confusion to users.
So, I need separate column headers from 4th rows.
This is my first requirement.
I will appreciate your help.
- Ramesh.
Hello Ramesh,
You can do this very easily. You can see examples in the XamFeatureBrowser, which is installed together with the components in the section XamDataGrid - Layout and Behavior. If you want every cell to have a label close to it, you can set the LabelLocation property like this
<igDP:FieldLayout.Settings> <igDP:FieldLayoutSettings LabelLocation="InCells"/> </igDP:FieldLayout.Settings>
or the header :
<igDP:XamDataGrid.FieldSettings> <igDP:FieldSettings ExpandableFieldRecordHeaderDisplayMode="AlwaysDisplayHeader"/> </igDP:XamDataGrid.FieldSettings>
Hope this helps.Alex.
Thank alex for your quick reply.
but it will display only that expanded row headers. i need 1st level headers.
Hello,
I do not think that this is supported and maybe it will require some manual coding. You can try binding the header content of the fourth level to the header content of the first. You can do that by creating a custom style using the default styles of all the controls and parts as a base -- they are located in the local directory "DefaultStyles" in the Infragistics folder -- look for HeaderPresenter, HeaderLabelArea.
Let me know if you have succeeded and whether it works in your scenario.
Alex.