Skip to main content
A newer version of this page is available. .

UnboundDataSource.Data Property

Gets the data represented by the UnboundDataSource. This is a dependency property.

Namespace: DevExpress.Xpf.Core.DataSources

Assembly: DevExpress.Xpf.Core.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

public IListSource Data { get; protected set; }

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>

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.

See Also