UnboundDataSource.Data Property
Gets the data represented by the UnboundDataSource. This is a dependency property.
Namespace: DevExpress.Xpf.Core.DataSources
Assembly: DevExpress.Xpf.Core.v24.1.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Property Value
Type | Description |
---|---|
IListSource | An IListSource implementation that is the data represented by the UnboundDataSource. |
Remarks
Use the Data property to bind a data-aware control to data.
The following example demonstrates a GridControl bound to an UnboundDataSource.
<Window ... >
<Window.Resources>
<dx:UnboundDataSource x:Key="UnboundDataSource" Count="10"/>
</Window.Resources>
<Grid>
<dxg:GridControl AutoGenerateColumns="AddNew"
ItemsSource="{Binding Data, Source={StaticResource UnboundDataSource}}"/>
</Grid>
</Window>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Data 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.