I have successfully implemented column groups in my wingrid via the row layouts. Now that I've done that, I need to freeze the first group (containing the first two data columns) so as I scroll horizontally that group stays put.
I've tried everything I can think of based on what I've found in your forum, but nothing seems to work. Since I have three grouped headings, I had to create two groups for the first two columns. One is the parent of the other. The groups are named GC_Empty and Empty and contain data columns 1 and 2 (column 0 is hidden). So I assumed that I would do one of the following (or both)
1. GC_Empty.Header.Fixed = true;
Empty.Header.Fixed = true;
2. band.Columns[1].Header.Fixed = true;
band.Columns[2].Header.Fixed = true;
Then afterwards: ugManagers.DisplayLayout.Override.FixedCellSeparatorColor = Color.Red;
Thanks in advance,
Paul
Hi Paul,
Please let us know if you require further assistance regarding the creating of a fixed grid (Greezing Groups in UltraGrid). We will be happy to assist you further.
Hi,
'ov' is deinfed in the sample code I posted above... it's like 5 posts back.
I don't think there is a PDF version of the docs, but I'm not sure, so I pinged Developer Support to see if they can get you a definitive answer on that.
I didn't have a definition of the object 'ov' so I had to eliminate that from my code. this morning I did a search on it and found out that I needed to do a override call, so I then assumed that 'ov' was a ppointer to the override object that you forgot to include in your code sample.
So now I am all set with everything. thanks so much for all your help.
Is there a place where I can download a complete developers' guide in PDF format? I would be able to find most of what I need if I had that type of document.
I covered that in my previous post.
ov.FixedHeaderIndicator = FixedHeaderIndicator.None;
Mike,
That final response put everything into proper focus. I hadn't noticed that there was a separate "UseFixedHeaders" for the entire WinGrid layout, and then a column-specific band.Groups[0].Header.Fixed = true; In my mind they were one and the same. Compound that with the explanation associated with the ColumnScrollRegion that I found on your forum some where, and to my mind you couldn't have the desired scrolling effect any other way.
I was getting different pointers because you still have documentation about scroll regions. I didn't notice if there was a discalimer about which version it referenced.
I just changed my WinGrid to use Fixed headers and everything works great. I can even export to Excel without any problems.
layout.UseFixedHeaders = true;
band.Groups[0].Header.Fixed = true;
band.Groups[1].Header.Fixed = false;
Finally, is it necessary for the pushpin icons to be along each group? I would rather not have them display since the user won't be switching from fixed to unfixed...
Thanks,