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
615
How to set the font weight of the selected column to bold?
posted

Hello!

We have a XamDatagrid that has set the "LabelClickAction" to "SelectField". Now we want to set the font weight of the label to be bold and maybe the background of the fields to be any color. How to do that?

 

Thanks, Florian

Parents
No Data
Reply
  • 9836
    posted

    Florian,

    Check out this style for the CellValuePresenter:

    <Grid.Resources>

      <Style TargetType="{x:Type igDP:CellValuePresenter}">

        <Setter Property="BackgroundFieldSelected" Value="Red"/>

          <Style.Triggers>

            <DataTrigger Binding="{Binding Path=Field.IsSelected,

     RelativeSource={RelativeSource Self}}"

     Value="True">

               <Setter Property="FontWeight" Value="Bold"/>

            </DataTrigger>

         </Style.Triggers>

      </Style>

    </Grid.Resources>

     

Children