Hi,
I am using UltraWinGrid with 2 Bands and for the Child band I want to merge 2 cells in a row (Cell(0) and Cell(1) of rows) but not for all the child rows.
In the image that i have shared, i want the child rows with values Test1, Test2, Test3, Test4, Test5, Test6 to be merged with the empty cell next to it (i.e. Cell(0)).
But the last 4 child rows with values 'Help Text', Test7.1, Test7.2, Test7.3 should not be merged. It should be displayed as 2 columns.
Thanks,
Chitra
Hello Chitra,
Thank you for posting in our forum.
Right now UltraGrid does not support merging of cells across columns. If I understand correctly in yor scenario you have a grid with three bands. One main band containing rows with values “L”, “C”, “R” and so on. Two child bands – one containing two columns which you need to merge, and second with “State” and “Help Text” columns. As a workaround in this scenario I can suggest you to hide the first column in in your first child band. This way you will achieve the visual appearance you are asking for. Please check the attached sample where I have implement this approach.
If this does not fit in your scenario you may implement custom creation filter to make cells appear as if they are merged. Please check the following link where similar question were answered http://ko.infragistics.com/community/forums/t/64996.aspx.
Please let me know if you need any additional information.
Thank you for sharing with us your workaround.
Hi Milko,
Thank you for your reply and the sample. I could achieve the expected result.
Earlier I had just used two tables, one parent table with 1 column other one child table with 2 columns and just added relation. Now using the 3rd table and adding relation to the (parent)main table gets me the expected result as suggested in the sample.