Hi,
How can i modify (programmatically) the header background of a specific column leaving all other headers unchanged?
Thanks,
Ofer
HI ,
Create a style targeting the LabelPresenter and set the FieldSetting's LabelPresenterStyle to that style.
Here are the code snippets:
<Grid.Resources>
<Style x:Key="lbstyle" TargetType="{x:Type igDP:LabelPresenter}">
<Setter Property="Background" Value="red"/>
</Style> </Grid.Resources>
<igDP:XamDataGrid.FieldLayouts>
<igDP:FieldLayout>
<igDP:FieldLayout.Fields>
<igDP:Field Name="Name">
<igDP:Field.Settings>
<igDP:FieldSettings LabelPresenterStyle="{StaticResource lbstyle}"/>
</igDP:Field.Settings>
</igDP:Field>
<igDP:Field Name="Age"/>
</igDP:FieldLayout.Fields>
</igDP:FieldLayout>
</igDP:XamDataGrid.FieldLayouts>
Sincerely,
Matt
Developer Support Engineer
Mat,
As i said , ineed to do it programmatically
Here is a code snippet: xgrid1.FieldLayouts[0].Fields["Age"].Settings.LabelPresenterStyle = layoutroot.Resources["lbstyle"] as Style;
Thanks Matt.