Hello all,
I am having a problem with the UseFixedHeader property on the WinGrid. I set the property but it only applies to the child band. I only need it to apply to the parent band, though. I have tried many different ways of setting the property, I have even commented out all formatting to make sure something wasn't getting reset. I have read something about a RowLayout? However, I don't think the graph (or band?) is in that layout mode. I can set the parent headers to fix on the click of a button, but I would like that the users be able to select which columns they wish to fix rather than setting 3 columns that they would only have the choice to fix.
Thanks for the help in advance!
Did you check the RowLayoutsStyle of Band 0 at run-time? Setting it to None won't do anything, since None is the default.
My only guess is that something else in your code is setting the RowLayoutStyle to something else after this code is executed.
Here is the code I used:
grdFuelData.DisplayLayout.Bands(0).RowLayoutStyle = RowLayoutStyle.None grdFuelData.DisplayLayout.UseFixedHeaders = True
I made the group headers visible on the grid, and the usefixedheaders worked on the group, but still not the column headers. I am using.
Yes, I was setting the fixed property on the entire grid but it only worked on the child bands, not the parent band. I am needing it to work on the parent band, but not the child band.
Thanks!
Are you saying that you are setting the Fixed property on a header in both the parent band and the child band and it only works on the child band and not on the parent band?
I can't see any reason why that would happen, unless the parent band is using a RowLayout. Check the UseRowLayouts or RowLayoutStyle property on the parent band (depending on which version you are using) to make sure it's not using a RowLayout of any kind.
I am using 2 lists of custom objects to make the bands. I was setting the fixed headers in code.
Do you use a Binding-Source for the grid ?
How do you set the fixed headers ? Code or in the Designer ?