'Declaration Public Property HeaderPrefixAreaDisplayMode As HeaderPrefixAreaDisplayMode
public HeaderPrefixAreaDisplayMode HeaderPrefixAreaDisplayMode {get; set;}
HeaderPrefixAreaDisplayMode specifies what to display in the header prefix area. By default nothing is displayed in this area.
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; }
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