Back to Devexpress

VGridControl.DataSource Property

windowsforms-devexpress-dot-xtraverticalgrid-dot-vgridcontrol-ced49b86.md

latest1.9 KB
Original Source

VGridControl.DataSource Property

Gets or sets the vertical grid’s data source.

Namespace : DevExpress.XtraVerticalGrid

Assembly : DevExpress.XtraVerticalGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

Declaration

csharp
[DefaultValue(null)]
public object DataSource { get; set; }
vb
<DefaultValue(Nothing)>
Public Property DataSource As Object

Property Value

TypeDefaultDescription
Objectnull

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.

See Also

DataMember

Binding to Data

VGridControl Class

VGridControl Members

DevExpress.XtraVerticalGrid Namespace