'宣言 Public Property FilterRecordLocation As FilterRecordLocation
public FilterRecordLocation FilterRecordLocation {get; set;}
FilterRecordLocation プロパティは、フィルター レコードの位置を指定します:レコードコレクションの下か上かどうか、および固定かスクロールかどうか。
実際にフィルター レコードを表示するには、FieldSettings.AllowRecordFiltering プロパティを true に、FilterUIType プロパティを FilterRecord に設定することが必要な点に注意してください。
Imports Infragistics.Windows Imports Infragistics.Windows.Editors Imports Infragistics.Windows.DataPresenter Private Sub Window1_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs) ' Set AllowRecordFiltering to enable record filter UI. _dp.FieldSettings.AllowRecordFiltering = True ' Use FilterUIType to specify what type of UI to use: Filter icons ' in the field labels or the filter-record. _dp.FieldLayoutSettings.FilterUIType = FilterUIType.FilterRecord ' If using filter-record, use FilterRecordLocation to control the location of ' the filter record. _dp.FieldLayoutSettings.FilterRecordLocation = FilterRecordLocation.OnTopFixed End Sub
using Infragistics.Windows; using Infragistics.Windows.Editors; using Infragistics.Windows.DataPresenter; public void Window1_Loaded( object sender, RoutedEventArgs e ) { // Set AllowRecordFiltering to enable record filter UI. _dp.FieldSettings.AllowRecordFiltering = true; // Use FilterUIType to specify what type of UI to use: Filter icons // in the field labels or the filter-record. _dp.FieldLayoutSettings.FilterUIType = FilterUIType.FilterRecord; // If using filter-record, use FilterRecordLocation to control the location of // the filter record. _dp.FieldLayoutSettings.FilterRecordLocation = FilterRecordLocation.OnTopFixed; }