Hi,
I am using XamDataGrid version 12.2.
The records in my grid support parent child relationship. On the top of the grid I have the headers for every column. the issue comes when I expand any record. On expanding the child row becomes visible but with the column headers.
PFA screenshot for more clarity.
Hi Neelesh,
You need a separate FieldLayout for each level. Right now you have a single FieldLayout that is being used by both the parent and child rows so if you set the LabelLocation to hidden on this layout it will become hidden at every level. You should have two FieldLayouts in your grid, one for the parent rows and one for all of the child rows. Then inside AssigningFieldLayoutToItem you will assign the appropriate FieldLayout depending on whether the item is a parent or child item. Inside the child FieldLayout is where you will set the LabelLocation to hidden.
I already have a master layout to which I have added dynamic columns.
Now on top of this when I add parent and child layout as you mentioned it's not working and the grid comes up empty.
Also I did this in the AssigningFieldLayoutToItem event.
if (args.ParentExpandableFieldRecord == null) { //do nothing } else { args.FieldLayout.Settings.LabelLocation = LabelLocation.Hidden;}
but doing this removes label from the top of the grid also.
Hello Neelesh,
Thank you for your post.
I have been looking into your question and what I can suggest is to take a look at the following forum thread where similar functionality was discussed yet:
http://es.infragistics.com/community/forums/t/86347.aspx
Please let me know if you require any further assistance on the matter.