Back to Devexpress

BaseView.DataSourceChanged Event

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-baseview-1baf3c0b.md

latest2.0 KB
Original Source

BaseView.DataSourceChanged Event

Occurs when the data source of the current View changes.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
[DXCategory("Property Changed")]
public event EventHandler DataSourceChanged
vb
<DXCategory("Property Changed")>
Public Event DataSourceChanged As EventHandler

Event Data

The DataSourceChanged event's data class is EventArgs.

Remarks

The event serves as a notification that the View’s BaseView.DataSource property is changed. For instance, this occurs when you connect a grid control to another data source via the GridControl.DataSource and GridControl.DataMember properties.

The event is also raised for detail clone Views when they are opened by expanding the corresponding master row.

See Also

BaseView.DataSource

GridControl.DataSource

DataMember

BaseView Class

BaseView Members

DevExpress.XtraGrid.Views.Base Namespace