'宣言 Public Property HeaderPrefixAreaDisplayMode As HeaderPrefixAreaDisplayMode
public HeaderPrefixAreaDisplayMode HeaderPrefixAreaDisplayMode {get; set;}
HeaderPrefixAreaDisplayMode は、ヘッダー プレフィックス領域で表示する項目を指定します。デフォルトでは、この領域には何も表示されません。
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; }