バージョン

Control プロパティ (CustomFilterSelectionControlOpeningEventArgs)

フィールドのカスタム フィルター条件を選択するための UI に表示されているコントロールを返します (読み取り専用)。
シンタックス
'宣言
 
Public ReadOnly Property Control As CustomFilterSelectionControl
public CustomFilterSelectionControl Control {get;}
解説

FilterTypeInfragistics.Windows.DataPresenter.CustomFilterSelectionControlFilterType.SingleField の場合、Infragistics.Windows.DataPresenter.CustomFilterSelectionControlRecordFilter と関連する単一の Infragistics.Windows.DataPresenter.Field にフィルターを追加/編集します。フィルター タイプが Infragistics.Windows.DataPresenter.CustomFilterSelectionControlFilterType.CrossField の場合、コントロールが FieldLayout に含まれる 1 つ以上の Infragistics.Windows.DataPresenter.Field にフィルターを追加/編集します。

使用例
Imports Infragistics.Windows
Imports Infragistics.Windows.Controls
Imports Infragistics.Windows.Editors
Imports Infragistics.Windows.DataPresenter
Imports Infragistics.Windows.DataPresenter.Events

    Private Sub Dp_CustomFilterSelectionControlOpening(ByVal sender As Object, ByVal e As CustomFilterSelectionControlOpeningEventArgs)
        ' RecordFilter returns the filter that is to be manipulated by the custom
        ' filter dialog.
        Dim filter As RecordFilter = e.RecordFilter

        ' You can get the field for which the custom filter dialog is opening by
        ' using the RecordFilter's Field property.
        Dim field As Field = filter.Field

        ' Control property returns the CustomFilterSelectionControl that will
        ' be displayed.
        Dim customFilterControl As CustomFilterSelectionControl = e.Control

        ' Print a message.
        Debug.WriteLine("Custom filter dialog is being displayed for field " & field.Name)

        ' You can set Cancel to true to prevent the data presenter from displaying
        ' the custom filter dialog.
        e.Cancel = True

        ' Setting Cancel to true lets you display display your own custom filter 
        ' dialog. All you need to do is update the e.RecordFilter with the conditions
        ' that the user selects from your custom dialog.
    End Sub
using Infragistics.Windows;
using Infragistics.Windows.Controls;
using Infragistics.Windows.Editors;
using Infragistics.Windows.DataPresenter;
using Infragistics.Windows.DataPresenter.Events;

		private void dp_CustomFilterSelectionControlOpening( object sender, CustomFilterSelectionControlOpeningEventArgs e )
		{
			// RecordFilter returns the filter that is to be manipulated by the custom
			// filter dialog.
			RecordFilter filter = e.RecordFilter;

			// You can get the field for which the custom filter dialog is opening by
			// using the RecordFilter's Field property.
			Field field = filter.Field;

			// Control property returns the CustomFilterSelectionControl that will
			// be displayed.
			CustomFilterSelectionControl customFilterControl = e.Control;

			// Print a message.
			Debug.WriteLine( "Custom filter dialog is being displayed for field " + field.Name );

			// You can set Cancel to true to prevent the data presenter from displaying
			// the custom filter dialog.
			e.Cancel = true;

			// Setting Cancel to true lets you display display your own custom filter 
			// dialog. All you need to do is update the e.RecordFilter with the conditions
			// that the user selects from your custom dialog.
		}
        <igDP:XamDataGrid x:Name="_dp" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"
                                            
CustomFilterSelectionControlOpening="dp_CustomFilterSelectionControlOpening"
                                        
>

            
<igDP:XamDataGrid.FieldSettings>
                
<!--Set AllowRecordFiltering to enable filter-record.-->
                
<igDP:FieldSettings AllowRecordFiltering="true" />
            
</igDP:XamDataGrid.FieldSettings>
            
        
</igDP:XamDataGrid>
参照