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.v21.2.dll

NuGet Package: 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>
See Also