CellValueChangedEventArgs.Column Property
Gets the column that contains the processed cell.
Namespace: DevExpress.XtraGrid.Views.Base
Assembly: DevExpress.XtraGrid.v24.2.dll
NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation
#Declaration
public GridColumn Column { get; }
#Property Value
Type | Description |
---|---|
Grid |
A Grid |
#Example
The following sample code handles the ColumnView.CellValueChanged event to update the FullName column value after the FirstName column value has been changed.
using DevExpress.XtraGrid.Views.Base;
using DevExpress.XtraGrid.Views.BandedGrid;
private void bandedGridView1_CellValueChanged(object sender, CellValueChangedEventArgs e) {
BandedGridView view = sender as BandedGridView;
if (view == null) return;
if (e.Column.Caption != "FirstName") return;
string cellValue = e.Value.ToString() + " " + view.GetRowCellValue(e.RowHandle, view.Columns["LastName"]).ToString();
view.SetRowCellValue(e.RowHandle, view.Columns["FullName"], cellValue);
}
#Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Column property.
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.