'Declaration Public Property FilterClearButtonVisibility As Nullable(Of Visibility)
public Nullable<Visibility> FilterClearButtonVisibility {get; set;}
FilterClearButtonVisibility property specifies the visibility of the filter clear button in the filter cell. Also note the FilterClearButtonLocation property which controls whether to display filter clear button in the filter record's record selector or the filter cells or both. Note that the FilterClearButtonVisibility has higher precedence.
Imports Infragistics.Windows Imports Infragistics.Windows.Controls Imports Infragistics.Windows.Editors Imports Infragistics.Windows.DataPresenter Imports Infragistics.Windows.DataPresenter.Events Private Sub Window1_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs) ' Enable the record filtering functionality. _dp.FieldSettings.AllowRecordFiltering = True ' You can use FilterClearButtonLocation to specify whether to display filter clear ' button in record selector and/or cells. Note that the filter clear button is ' displayed only if there are active filters. Therefore you must select some filter ' criteria in the filter cell to display the filter clear button. _dp.FieldLayoutSettings.FilterClearButtonLocation = FilterClearButtonLocation.RecordSelectorAndFilterCell ' You can use the FieldSettings' FilterClearButtonVisibility to override filter ' clear button visibility on a specific field, in this case the 'Country' field. _dp.FieldLayouts(0).Fields("Country").Settings.FilterClearButtonVisibility = Visibility.Collapsed End Sub
using Infragistics.Windows; using Infragistics.Windows.Controls; using Infragistics.Windows.Editors; using Infragistics.Windows.DataPresenter; using Infragistics.Windows.DataPresenter.Events; public void Window1_Loaded( object sender, RoutedEventArgs e ) { // Enable the record filtering functionality. _dp.FieldSettings.AllowRecordFiltering = true; // You can use FilterClearButtonLocation to specify whether to display filter clear // button in record selector and/or cells. Note that the filter clear button is // displayed only if there are active filters. Therefore you must select some filter // criteria in the filter cell to display the filter clear button. _dp.FieldLayoutSettings.FilterClearButtonLocation = FilterClearButtonLocation.RecordSelectorAndFilterCell; // You can use the FieldSettings' FilterClearButtonVisibility to override filter // clear button visibility on a specific field, in this case the 'Country' field. _dp.FieldLayouts[0].Fields["Country"].Settings.FilterClearButtonVisibility = Visibility.Collapsed; }
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2