Using the UltraWinGrid how do I merge columns. For example if I have four columns in my grid and I want to merge columns 2 and 3 how would I do this? I cannot seem to find a clear answer on the forums or documentation.
Thank you,
Glenn
Hello,
UltraWinGrid doesn’t support build-in functionality for merging cells across columns. I am not exactly sure what you mean with “how do I merge columns”. If you want to merge some cells, across columns you could use Creation Filter in order to cover the editor of the second column with editor of the first column. I have implemented a very base sample in order to demonstrate this approach. Please run the sample and let me know if this is what you are looking for.
Please let me know if you have any further questions.
The sample works great.
There is one issue and I wanted to know if there is a built in way to handle it.
When you launch the sample, the first row has Col0 and Col1 merged.
The focus is on the merged cell. I need to hit {TAB} TWICE to get to Col2.
Is there some property of the Grid that can handle this issue?
Thanks!
Hi Hristo,
Let me clarify further. Within a row I am trying to merge cells. So let's say my table has four columns in it. For a particular row I might need to merge the cells in columns 1 and 2. In another row I might need to merge cells from all four columns.
So for instance I have this:
Col1 Col2 Col3 Col4
Text1 Text2 Text3 Text4
Text1 Text2 (Cells merged for row in col1 and 2 and col3 and 4)
Text1 (Cells merged for row in all four columns)
I need to be able to merge cells in a row like this. I will review your example, but perhaps there is an easier implementation.