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
270
Freezing Groups in WinGrid
posted

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

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi Paul,

    Fixed headers and RowLayouts are mutually exclusive. There is no way to fix a header in RowLayout mode.

    If you have nested groups, then there's not much you can do. But if you are only using a single row of groups with some columns in each group in a flat layout, you could use the normal Groups and levels view (RowLayoutStyle == None).

Children