Home Forums WPF controls Xceed DataGrid for WPF Change Xceed Grid Column header onfocus and onclick style

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

    Please provide me a sample code for changing Xceed Grid’s Column header onfocus and onclick style

    Imported from legacy forums. Posted by Sathish (had 261 views)

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi Sathish,

     

    The ColumnManagerRow is configured to be non focusable. Therefore, it doesn’t have a style property to be set when it’s selected, or clicked.

    Imported from legacy forums. Posted by Fawzi [Xceed] (had 115 views)

    User (Old forums)
    Member
    Post count: 23064

    May be I didn’t explained my problem clearly

     

    How to change IsFocused (or) Selected column
    style of Grid. My Default Background  Color is Blue and Foreground is White

    When I select a column,  I cant read Text

    I Tried below and it is not working properly

           <Style TargetType=”{x:Type xcdg:ColumnManagerCell}”>
                <Setter Property=”HorizontalContentAlignment”
                    Value=”Center”/>
                <Setter Property=”VerticalContentAlignment”
                    Value=”Center” />
                <Setter Property=”Background” 
                    Value=”Blue” />
                <Setter Property=”Foreground”  
                    Value=”White” />
                <Style.Triggers>
                    <Trigger Property=”IsFocused” Value=”True”>
                        <Setter Property=”Foreground” Value=”Blue”/>
                        <Setter Property=”Background” Value=”White” />
                    </Trigger>
                </Style.Triggers>
            </Style>

     

    Imported from legacy forums. Posted by Sathish (had 0 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi Fawzi,

          May be I was not explained my problem clearly. I have sent you a mail regarding my issue to support@xceed.com’  on 11/11/2015.

    Imported from legacy forums. Posted by Sathish (had 159 views)

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