VGridControl.DataSource Property
Gets or sets the vertical grid’s data source.
Namespace: DevExpress.XtraVerticalGrid
Assembly: DevExpress.XtraVerticalGrid.v21.1.dll
NuGet Packages: DevExpress.Win.Design, DevExpress.Win.VerticalGrid
Declaration
Property Value
Type | Default | Description |
---|---|---|
Object | *null* | An object representing the grid’s data source. |
Remarks
Objects implementing the IList, ITypedList and IBindingList interfaces can be used as data sources, you can also use database or XML file content as a data source. Please refer to the Data Modes Overview topic for information on which objects can be assigned to the DataSource property.
Changing this property value raises the VGridControlBase.DataSourceChanged event.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references 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.