バージョン

HeaderPrefixAreaDisplayMode プロパティ

ヘッダー プレフィックス領域に表示する項目を指定します。ヘッダー プレフィックス領域は、デフォルトでレコード セレクターの上で、フィールド ラベルの左にある領域です。デフォルト値は None に解決されます。
シンタックス
'宣言
 
Public Property HeaderPrefixAreaDisplayMode As HeaderPrefixAreaDisplayMode
public HeaderPrefixAreaDisplayMode HeaderPrefixAreaDisplayMode {get; set;}
解説

HeaderPrefixAreaDisplayMode は、ヘッダー プレフィックス領域で表示する項目を指定します。デフォルトでは、この領域には何も表示されません。

使用例
The following code snippet sets HeaderPrefixAreaDisplayMode to display the field chooser button in the headers area. It also shows you how to hook into the FieldChooserOpening event to set properties on the FieldChooser that the data presenter will display when the user clicks the field chooser button.

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)
        ' FieldChooserButton option displays a button in the headers area where field labels
        ' are displayed, right above the record selectors. This button shows the FieldChooser.
        _dataPresenter.FieldLayoutSettings.HeaderPrefixAreaDisplayMode = HeaderPrefixAreaDisplayMode.FieldChooserButton

        ' Ensure that record selectors are visible otherwise above property setting will not
        ' have any effect. Note that the record selectors are visible by default.
        _dataPresenter.FieldLayoutSettings.RecordSelectorLocation = RecordSelectorLocation.LeftOfCellArea
    End Sub

    Private Sub Dp_FieldChooserOpening(ByVal sender As Object, ByVal e As FieldChooserOpeningEventArgs)
        ' Get the field chooser that's about to be displayed.
        Dim fieldChooser As FieldChooser = e.FieldChooser

        ' Set some properties on it.
        fieldChooser.FieldDisplayOrder = FieldChooserDisplayOrder.Alphabetical
        fieldChooser.DisplayHiddenFieldsOnly = False
    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 )
		{
			// FieldChooserButton option displays a button in the headers area where field labels
			// are displayed, right above the record selectors. This button shows the FieldChooser.
			_dataPresenter.FieldLayoutSettings.HeaderPrefixAreaDisplayMode = HeaderPrefixAreaDisplayMode.FieldChooserButton;

			// Ensure that record selectors are visible otherwise above property setting will not
			// have any effect. Note that the record selectors are visible by default.
			_dataPresenter.FieldLayoutSettings.RecordSelectorLocation = RecordSelectorLocation.LeftOfCellArea;
		}

		private void dp_FieldChooserOpening( object sender, FieldChooserOpeningEventArgs e )
		{
			// Get the field chooser that's about to be displayed.
			FieldChooser fieldChooser = e.FieldChooser;

			// Set some properties on it.
			fieldChooser.FieldDisplayOrder = FieldChooserDisplayOrder.Alphabetical;
			fieldChooser.DisplayHiddenFieldsOnly = false;
		}
        <igDP:XamDataGrid x:Name="_dataPresenter" Grid.Column="1" FieldChooserOpening="dp_FieldChooserOpening" >
            
<igDP:XamDataGrid.FieldLayoutSettings>
                
<igDP:FieldLayoutSettings HeaderPrefixAreaDisplayMode="FieldChooserButton" />
            
</igDP:XamDataGrid.FieldLayoutSettings>            
        
</igDP:XamDataGrid>
参照