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

Declaration

public IListSource Data { get; protected set; }
Public Property Data As IListSource

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