Hello,
My customer would like to customize the SfDataGrid like this:
I'm really close, but I don't see how to "remove" the border on the Header:
My XAML looks like this:
<Page.Resources>
<Style x:Key="customRowStyle" TargetType="grid:VirtualizingCellsControl">
<Setter Property="Background" Value="#FFF2F2F2" />
</Style>
<Style TargetType="grid:GridCell">
<Setter Property="BorderBrush" Value="White" />
</Style>
<Style TargetType="grid:HeaderRowControl">
<Setter Property="BorderThickness" Value="0,0,0,0" />
<Setter Property="BorderBrush" Value="Red" />
</Style>
</Page.Resources>
...
<grid:SfDataGrid x:Name="sfDataGrid" Grid.Row="1"
Margin="0,0,0,16"
Padding="0,8,0,0"
ItemsSource="{Binding CarForms}"
BorderThickness="0,0,0,0"
RowStyle="{StaticResource customRowStyle}"
SelectedItem="{Binding SelectedForm, Mode=TwoWay}"
AutoGenerateColumns="False"
ColumnSizer="Star"
NavigationMode="Row"
HeaderRowHeight="50">
Is there something I ve forgotten?
How to remove the border on the Header row?
Regards,