I need to merge two column headers that are side-by-side into a single column header. How do I do that? I'd like the columns themselves to remain separate. I just want the header to look like a single header.
Hi,
I tried to reproduce what you are describing using the sample that I posted here and I could not get it to happen. One difference, I think, it that in what you are describing, you are merging the headers for the first two columns and in my sample, it is columns 1 and 2 that are merged. So I changed the sample to merge the first two columns (0 and 1) and then moved another column and dropped it before column 0. But I am still not seeing any problem.
So whatever you are experiencing is probably related to some other property setting on your grid or else an error in the code.
Can you modify my sample to reproduce the issue and post it here so I can check it out?
Hey Mike, your solution of merging to two column headers works perfectly fine. But there is small problem, When we move any other column(except the 2 columns whose headers we are merging) to left of 1st column(whose header is removed and 2nd header is extended), then extended header further increases its width to include other moved column header as well. So in this case the other column headers are also removed by extended header. Any solution can you propose to this problem?
njaggi said:I suppose there's isn't any guesses you can take for that.
I can't think of anything off the top of my head, no. If you can post a sample demonstrating the behavior, I'm sure I could tell you what's causing it. But without being able to see it, I'm afraid I don't have any useful ideas.
Hi Mike,
thanks for the sample application. Sorry for the delayed response. We actually have a usercontrol that inherits UltraWinGrid which add a huge amount of default settings to the control. It may be one of these settings that might be interfering with how the columns are being rendered. We decided to use groups for the current project as there wasn't enough time to figure out which setting is causing this issue. I suppose there's isn't any guesses you can take for that.
I will surely try again someday.
thanks
I'm not seeing that problem. I have attached a working sample here.