Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
144661 | May 16,2019 09:08 AM UTC | May 17,2019 07:35 AM UTC | WPF | 1 |
![]() |
Tags: SfDataGrid |
<Style TargetType="syncfusion:GridRowHeaderIndentCell">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="syncfusion:GridRowHeaderIndentCell">
<Border x:Name="PART_RowHeaderCellBorder"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
<Grid>
<!--Load the Button to clear the filter -->
<Button Content="x" Click="ClearFilter" />
</Grid>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style> |
private void ClearFilter(object sender, RoutedEventArgs e)
{
//Clear all the filters from the SfDataGrid.
this.sfdatagrid.ClearFilters();
} |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.