Home Forums WinForms controls Xceed Grid for WinForms BackColor of ColumnManagerRow not working right

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

    The only way for me to get the BackColor to really change on the ColumnManagerRow using a stylesheet is to set the OverrideUIStyle to true on the Grid object. The help file is very vague in how to use them. Can someone please shed some light on this.

    Here is the code for my stylesheet:

    ‘ Creates and instance of the xceed stylesheet
    Dim xss As New Xceed.Grid.StyleSheet()

    ‘ Set the GRID properties
    xss.Grid.SelectionBackColor = Drawing.Color.Yellow
    xss.Grid.SelectionForeColor = Drawing.Color.Black

    ‘ Set the ColumnManager properties
    xss.ColumnManagerRow.BackColor = Drawing.Color.Navy
    xss.ColumnManagerRow.ForeColor = Drawing.Color.White

    Thanks,
    Josh

    Imported from legacy forums. Posted by jdanko (had 1942 views)

    User (Old forums)
    Member
    Post count: 23064

    I guess this has nothing to do with the Grid, but rather Windows styles taking control. I just set overrideUIstyle to true for everything and it lets me do what I want. If this is not right let me know. Thanks.

    Josh

    Imported from legacy forums. Posted by jdanko (had 2928 views)

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