Version

DataPresenter Property (FieldChooser)

Specifies the data presenter whose fields are being customized by this FieldChooser.
Syntax
'Declaration
 
Public Property DataPresenter As DataPresenterBase
public DataPresenterBase DataPresenter {get; set;}
Example
The following code snippet associates a field chooser with a data presenter.

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)
        _fieldChooser.DataPresenter = _dataPresenter
    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 )
		{
			_fieldChooser.DataPresenter = _dataPresenter;
		}
    <Grid>

        
<Grid.ColumnDefinitions>
            
<ColumnDefinition Width="Auto" />
            
<ColumnDefinition Width="*" />
        
</Grid.ColumnDefinitions>

        
<igDP:FieldChooser
                
x:Name="_fieldChooser"
                
Grid.Column="0"
                
DataPresenter="{Binding ElementName=_dataPresenter}"
                
MinWidth="140"
        
/>
        
        
<igDP:XamDataGrid x:Name="_dataPresenter" Grid.Column="1" />

    
</Grid>
Requirements

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

See Also