Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DataGridView.ItemsSource Property

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

Namespace: DevExpress.Maui.DataGrid

Assembly: DevExpress.Maui.DataGrid.dll

NuGet Package: DevExpress.Maui.DataGrid

#Declaration

C#
public object ItemsSource { get; set; }

#Property Value

Type Description
System.Object

An object that implements the IList, IList<T>, IEnumerable or IEnumerable<T> interface and specifies the data source from which the grid retrieves its data. You can also use a DataTable object as the data source.

#Remarks

If the grid’s data source is a collection that implements the IBindingList or INotifyCollectionChanged interface, the grid is automatically updated when the collection is changed (items are added, moved, or deleted). If an item of the grid’s bound data source implements the INotifyPropertyChanged interface, the grid is automatically updated when the collection’s item changes.

For more information, refer to the following help topic: Bind DataGridView to a Data Source.

See Also