wpf-devexpress-dot-xpf-dot-grid-dot-cellvalueeventargs.md
Gets a column that contains the edited cell.
Namespace : DevExpress.Xpf.Grid
Assembly : DevExpress.Xpf.Grid.v25.2.dll
NuGet Package : DevExpress.Wpf.Grid.Core
public GridColumn Column { get; protected set; }
Public Property Column As GridColumn
| Type | Description |
|---|---|
| GridColumn |
A GridColumn object that represents the column that contains the edited cell.
|
To obtain the handle of a row that owns the edited cell, use the RowEventArgs.RowHandle property.
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.
wpf-data-grid-change-background-color-for-modified-cells/CS/HighlightChangedCellBehavior.cs#L38
void OnViewCellValueChanged(object sender, CellValueChangedEventArgs e) {
if (!IsServiceColumn(e.Column)) {
var fieldName = $"{UnboundColumnPrefix}{e.Column.FieldName}";
wpf-data-grid-change-background-color-for-modified-cells/VB/HighlightChangedCellBehavior.vb#L57
Private Sub OnViewCellValueChanged(ByVal sender As Object, ByVal e As DevExpress.Xpf.Grid.CellValueChangedEventArgs)
If Not HighlightModifiedCells.ChangedCellsHighlightBehavior.IsServiceColumn(e.Column) Then
Dim fieldName = $"{HighlightModifiedCells.ChangedCellsHighlightBehavior.UnboundColumnPrefix} {e.Column.FieldName}"
See Also