GridControl.DataSourceChanged Event

Fires when changing the GridControl.DataSource property value.

Namespace: DevExpress.XtraGrid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

[DXCategory("Grid")]
public event EventHandler DataSourceChanged
<DXCategory("Grid")>
Public Event DataSourceChanged As EventHandler

Event Data

The DataSourceChanged event's data class is EventArgs.

Remarks

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