Hi Support,
XamGrid support rows cell merge. Is it possible to merger cells of several columns in one row?
thanks,
Eric
Hello Eric,
Thank you for your post. I have been looking into your question and the cell merging feature of the XamGrid is based on grouping the columns. When you group a column and the GrupByOperation of the GroupBySettings is set to MergeCells, instead of getting GroupByRows, the XamGrid will merge the cells with the same value in the grouped column. You can read more regarding the cell merge here: http://help.infragistics.com/Doc/WPF/current/CLR4.0/?page=xamGrid_Merged_Cells.html.
I have created a sample application for you, that shows the cell merging in XamGrid.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir, MCPD
Developer Support Supervisor - XAML
Infragistics
www.infragistics.com/support
Hi,
Thanks for your help. I know how to merge cell for rows. What I want is to merge "high", "low", "open" and "close" if these columns have the same value. Is that possible?
thanks,Eric
I am just checking if you require any further assistance on the matter.
Thank you for your reply. You can group every column and the equal values will be merged. You can define the columns as the Label column in the sample and set the IsGrouped to true. Also, you can allow the users to group though the UI, by setting the AllowGroupByArea property of the GroupBySettings of the XamGrid to Top for example.
The grouping (cell merging) will be done based on the order of the group columns. For example, if you group by Label and then by Open and after that by Close, The XamGrid will group and then merge the cells in the Label column. After that, for each group in Label column, it will group the Open cells and will merge the cells. and then the same for the Close column.
I am attaching a modified version of the sample that I have sent previously, to show how you can apply grouping for more columns.