How to set style for selectedRow in datagrid?

Oct 2, 2008 at 11:25 AM
How can I set style for selectedRow using Xaml (which mean I define this style in XAML file) eg:
<DataGrid  Style={StaticResouce GridStyle}>
<Style x:Key="GridStyle">
 Define the style for selectedRow here

Oct 3, 2008 at 2:08 PM
You can set properties on the selected row by using a style trigger in a row style.



Style TargetType="{x:Type dg:DataGridRow}">
        <Trigger Property="IsSelected" Value="True">
            <Setter Property="some property" Value="some value" />


Oct 12, 2008 at 5:37 AM
It works,