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

ColumnView.ColumnChanged Event

Fires when changing a column’s properties.

Namespace: DevExpress.XtraGrid.Views.Base

Assembly: DevExpress.XtraGrid.v19.1.dll

Declaration

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

Event Data

The ColumnChanged event's data class is EventArgs.

Remarks

The ColumnChanged event is raised when the properties affecting column data representation are changed. The column whose properties have changed is identified by the event’s sender parameter. The event is used internally by Views. Generally, you will have no need to handle it in your own application.

private void gridView1_ColumnChanged(object sender, EventArgs e) {
    GridColumn column = sender as GridColumn;
    MessageBox.Show("The " + column.Caption + " column has changed");
}

You may need to respond to sorting or grouping a View against specific column values. For this purpose, handle the ColumnView.EndSorting and ColumnView.EndGrouping events respectively.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ColumnChanged 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