Back to Devexpress

CustomColumnDisplayTextEventArgs.RowHandle Property

wpf-devexpress-dot-xpf-dot-grid-dot-customcolumndisplaytexteventargs-22b96a70.md

latest2.8 KB
Original Source

CustomColumnDisplayTextEventArgs.RowHandle Property

Gets the processed row’s handle.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public int RowHandle { get; }
vb
Public ReadOnly Property RowHandle As Integer

Property Value

TypeDescription
Int32

An integer value that specifies the row’s handle.

|

Remarks

To learn more, see Obtaining Row Handles and Identifying Rows and Cards.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RowHandle 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-grid-display-custom-text-in-cells/CS/DisplayCustomText_CodeBehind/MainWindow.xaml.cs#L23

csharp
return;
if((double)gridControl1.GetCellValue(e.RowHandle, "Discount") > 20)
    e.DisplayText = ((string)e.Value) + " (SALE)";

wpf-grid-display-custom-text-in-cells/VB/DisplayCustomText_CodeBehind/MainWindow.xaml.vb#L33

vb
If Not e.Column.Equals(Me.columnProductName) OrElse e.ListSourceIndex < 0 Then Return
    If CDbl(Me.gridControl1.GetCellValue(e.RowHandle, "Discount")) > 20 Then e.DisplayText =(CStr(e.Value)) & " (SALE)"
End Sub

See Also

CustomColumnDisplayTextEventArgs Class

CustomColumnDisplayTextEventArgs Members

DevExpress.Xpf.Grid Namespace