Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
850
Working with merged cells
posted

Hello guys,

I need to do something with my grid and I was wondering if this is posible to do.

Ok, I want to achieve following:

I want to merge cells in all my ultragrid, wich is posible using the following line code:

UltraGrid1.DisplayLayout.Override.MergedCellStyle = MergedCellStyle.Always

with this code, I have my ultragrid with merged cells (Picture 2), But I need to achieve this behavior:

The cells should be merged based on a previously merged cell. I mean, they depend on each other (Picture 3).

If you see the image that I attached, I think I'm going to explain better.

How can I achieve this?

Is there any solution?

 

Parents
No Data
Reply
  • 48586
    posted

    Hello,

     

    You could easy achieve your goal if you make own implementation of IMergedCellEvaluator interface and set it as MergedCellEvaluator of the column. In the attached sample I show how to do this.

     

    Let me Know if you have any further questions.

    WinGridMergeCells2.zip
Children