Back to Devexpress

GridControl.DataSource Property

wpf-devexpress-dot-xpf-dot-grid-dot-gridcontrol-995a5af3.md

latest2.6 KB
Original Source

GridControl.DataSource Property

OBSOLETE

Instead use the ItemsSource property. For detailed information, see the list of breaking changes in DXperience v2011 vol 1.

Obsolete. Gets or sets the grid’s data source. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
[Obsolete("Instead use the ItemsSource property. For detailed information, see the list of breaking changes in DXperience v2011 vol 1.")]
[Browsable(false)]
[Bindable(true)]
public object DataSource { get; set; }
vb
<Obsolete("Instead use the ItemsSource property. For detailed information, see the list of breaking changes in DXperience v2011 vol 1.")>
<Browsable(False)>
<Bindable(True)>
Public Property DataSource As Object

Property Value

TypeDescription
Object

An object that represents the data source from which the grid retrieves its data.

|

Remarks

Use the DataControlBase.ItemsSource property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DataSource 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-dock-layout-manager-serialize-custom-panels-and-their-properties/CS/DX_WPF_Application10/MainWindow.xaml#L23

xml
<dxg:GridControl AutoPopulateColumns="True" ShowBorder="False">
    <dxg:GridControl.DataSource>
        <collections:ArrayList>

See Also

GridControl Class

GridControl Members

DevExpress.Xpf.Grid Namespace