Home Forums WinForms controls Xceed Grid for WinForms ColumnManagerRow Backcolor

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #15099 |

    I have a problem that I cant work out how to fix. I am trying to style the grid (3.2) but I cant seem to change the background color on the ColumnManagerRow.

    I have Initialized the grid and then set the column backcolor like so;

    objForm.XceedGridControl.Columns(df.DataField).ReportStyle.BackColor =

    I then call;


    Now I modify the ColumnManagerRow to set the column Headers background colour to GhostWhite as I want my headers to look like headers rather than having the same colour scheme as the data rows.

    objForm.ColumnManagerRow1.ReportStyle.RepeatOnEachPage = True
    objForm.ColumnManagerRow1.ReportStyle.BackColor = Color.GhostWhite

    again I call;


    When I export this grid (as we are only using it for its reporting facilities), the column headers still have the original background color in each cell rather than the new color (ghostwhite). I say cell because there is padding around the column header cells and this area does appear as ghost white.

    I even tried iterating through each cell in the columnManagerRow and changing each cells background color to ghost white but this didn’t work either. Am I missing something obvious?

    Imported from legacy forums. Posted by Mark (had 2083 views)

    User (Old forums)
    Post count: 23064

    First, it is normal that setting the ColumnManagerRow BackColor will not work if you set the Column BackColor, because the ColumnManagerCell is ambient to the column first before being ambient to the row.

    You can look at the following topic for more information on ambientness in the grid :

    <a href=”http://doc.xceedsoft.com/products/XceedGrid/Ambient_properties.html”>http://doc.xceedsoft.com/products/XceedGrid/Ambient_properties.html</a&gt;
    <a href=”http://doc.xceedsoft.com/products/XceedGrid/Ambientness_and_reports.html”>http://doc.xceedsoft.com/products/XceedGrid/Ambientness_and_reports.html</a&gt;

    Second, setting the ColumnManagerCell should have precedence over the column. However, I tested this, and it works fine here, the ColumnManagerCell BackColor is GhostWhite when reporting. I suggest you send a sample application reproducing the issue to <a href=”mailto:support@xceedsoft.com”>support</a>, so we can investigate this further.

    Imported from legacy forums. Posted by André (had 2998 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.