Hello,
I have a task to create different header style for the DevEx Data Grid and apply it to only one Grids in our program. Right now the Grid Header style is defined in our ColumnHeader.xaml file and is implicit. I can create another style with a key name in XAML, but I'm not sure how to apply it to the Data Grid control in the XAML code.
Here's the sample of our Grid in the XAML:
XAML<devExControlLib:DataGridControl Grid.Row="4" Grid.ColumnSpan="3"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
ItemsSource="{Binding SelectedSheetData}"
ShowGroupPanel="False"
AutoPopulateColumns="True"
AllowEditing="False"
ShowColumnHeader="True">
<devExControlLib:DataGridControl.ExtendedProperties>
<devExControlLib:DataGridExtendedProperties ShowFooter="Collapsed" ShowHeaderSelectAllCheckBox="Collapsed"/>
</devExControlLib:DataGridControl.ExtendedProperties>
</devExControlLib:DataGridControl>
I basically want to say something like - Style.Header="{StaticResource MyNewHeaderStyle}" So that I can overwrite the implicit style that we have applied currently.
Thanks.
mike