Back to Devexpress

CellValueEventArgs.Column Property

wpf-devexpress-dot-xpf-dot-grid-dot-cellvalueeventargs.md

latest2.8 KB
Original Source

CellValueEventArgs.Column Property

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

Declaration

csharp
public GridColumn Column { get; protected set; }
vb
Public Property Column As GridColumn

Property Value

TypeDescription
GridColumn

A GridColumn object that represents the column that contains the edited cell.

|

Remarks

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

csharp
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

vb
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

CellValueEventArgs Class

CellValueEventArgs Members

DevExpress.Xpf.Grid Namespace