Back to Devexpress

GridColumnDataEventArgs.Column Property

wpf-devexpress-dot-xpf-dot-grid-dot-gridcolumndataeventargs-fa11cdcf.md

latest2.8 KB
Original Source

GridColumnDataEventArgs.Column Property

Gets the unbound column currently being processed.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

TypeDescription
GridColumn

A GridColumn object that represents the unbound column.

|

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#L51

csharp
void OnGridCustomUnboundColumnData(object sender, GridColumnDataEventArgs e) {
    if (IsServiceColumn(e.Column)) {
        var key = Tuple.Create(AssociatedObject.GetRowByListIndex(e.ListSourceRowIndex), e.Column.FieldName);

wpf-data-grid-change-background-color-for-modified-cells/VB/HighlightChangedCellBehavior.vb#L73

vb
Private Sub OnGridCustomUnboundColumnData(ByVal sender As Object, ByVal e As DevExpress.Xpf.Grid.GridColumnDataEventArgs)
    If HighlightModifiedCells.ChangedCellsHighlightBehavior.IsServiceColumn(e.Column) Then
        Dim key = System.Tuple.Create(Me.AssociatedObject.GetRowByListIndex(e.ListSourceRowIndex), e.Column.FieldName)

See Also

GridColumnDataEventArgs Class

GridColumnDataEventArgs Members

DevExpress.Xpf.Grid Namespace