wpf-devexpress-dot-xpf-dot-grid-dot-lookup-dot-lookupedit-b673460e.md
Gets or sets whether columns should be created automatically for all fields in a data source. This is a dependency property.
Namespace : DevExpress.Xpf.Grid.LookUp
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public bool AutoPopulateColumns { get; set; }
Public Property AutoPopulateColumns As Boolean
| Type | Description |
|---|---|
| Boolean |
true, to automatically create columns for all fields in a data source; otherwise, false.
|
If you create columns manually for the embedded grid, set the AutoPopulateColumns property to false to disable automatic column generation. Otherwise, the LookupEdit substitutes your columns with the automatically generated ones.
To learn more, see Creating Columns and Binding Them to Data Properties.
The following code snippets (auto-collected from DevExpress Examples) contain references to the AutoPopulateColumns property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
wpf-lookupedit-filter-by-multiple-columns/CS/MainWindow.xaml#L13
ValueMember="ID"
AutoPopulateColumns="False"
ImmediatePopup="True"
wpf-data-grid-filter-column-lookupedit-based-on-value-in-another-column/CS/MainWindow.xaml#L26
<dxg:LookUpEdit Name="PART_Editor"
ItemsSource="{Binding View.DataContext.Cities}" AutoPopulateColumns="False"
ValueMember="CityId" DisplayMember="CityName">
wpf-pivot-grid-implement-a-custom-filter-popup/CS/DXPivotGrid_CustomFilterPopup/MainWindow.xaml#L19
<local:PivotGridCustomFilter DataContext="{Binding Path=(dxpgi:FieldHeader.Header), RelativeSource={RelativeSource Self}}"
AutoPopulateColumns="False"
FocusPopupOnOpen="True"
See Also