Hi,
In a XamDataGrid, I have this fields labels :
Is there a way to have a label for three fields like this :
And is it possible to have a different color for each group of field ?
Thanks
Hi aurispg,
After further investigation of this requirement, I have determined that the XamDataGrid is not the best control for this behavior as there is no built in support for it; however, the XamGrid does extend support for this funcationality via its Group Column.
I have included the following link to our online documentation, which details this behavior and a walk-thru of its implementation.
http://help.infragistics.com/NetAdvantage/WPF/2013.1/CLR4.0/?page=xamGrid_Group_Column.html
Please take a look at this approach, with the XamGrid and if you have any further questions or if it is not feasible to use this control, please let me know and I will look into potential alternative solutions, if feasible.
Sincerely,Chris KDeveloper Support EngineerInfragistics, Inc.www.infragistics.com/support
The previous link is broken, sorry
Hi Chris,
It is not what I search. I have not explain correctly. I join an image to be clearer.
Regards,
Geoffroy
While the exact behavior that you are interested in may not be feasible, the approximate behavior is possible.
The closest reproduction of this behavior that I have achieved was by explicitly positioning the columns via their FieldLayouts; in this manner, I was able to produce the approximate layout that you described for when the items are grouped.
This approach could be taken one step further by programmatically grouping your data and then hiding the column headers; although there would be no obvious association between the data and intended type.
I have also included the sample for the above documented behaviors, for further context.
I have one idea for an approach which may resolve this by modifying the ContentItemGrid which the grouped data is being rendered in order to style the fields so that they will be arranged vertically relative to their associated data.
The latter approach would require further research and may not actually be feasible, but I will definitely look into this further if you are interested.