GridControl.DataSourceChanged Event

Fires when changing the GridControl.DataSource property value.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v20.1.dll


public event EventHandler DataSourceChanged
Public Event DataSourceChanged As EventHandler

Event Data

The DataSourceChanged event's data class is EventArgs.


Handle the DataSourceChanged event to perform actions when the grid control's data source changes. For instance, you can update the control's GridControl.MainView or change the GridControl.LevelTree tree so that the grid represents the updated data correctly.

Note: the DataSourceChanged event is not raised when changing the GridControl.DataMember property.

See Also