Skip to main content
A newer version of this page is available. .

BaseView.DataSourceChanged Event

Occurs when the data source of the current View changes.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v18.2.dll

Declaration

[DXCategory("Property Changed")]
public event EventHandler DataSourceChanged

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the DataSourceChanged event.

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.

See Also