Back to Devexpress

CustomSummaryEventArgs.RowHandle Property

corelibraries-devexpress-dot-data-dot-customsummaryeventargs-76694380.md

latest2.8 KB
Original Source

CustomSummaryEventArgs.RowHandle Property

Gets the handle of the processed row.

Namespace : DevExpress.Data

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

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

Property Value

TypeDescription
Int32

An integer value identifying the processed data row by its handle.

|

Remarks

This property’s return value can be passed to a method allowing you to obtain the processed row’s data. Thus, you are not limited to using the CustomSummaryEventArgs.FieldValue property only to accumulate the CustomSummaryEventArgs.TotalValue.

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.

winforms-grid-customize-footer-menu-calculate-custom-totals/CS/Form1.cs#L82

csharp
{
    if (!Convert.ToBoolean(view.GetRowCellValue(e.RowHandle, "Discontinued"))) validRowCount++;
}

winforms-grid-customize-footer-menu-calculate-custom-totals/VB/Form1.vb#L70

vb
If e.SummaryProcess = DevExpress.Data.CustomSummaryProcess.Calculate Then
    If Not Convert.ToBoolean(view.GetRowCellValue(e.RowHandle, "Discontinued")) Then validRowCount += 1
End If

See Also

Rows

CustomSummaryEventArgs Class

CustomSummaryEventArgs Members

DevExpress.Data Namespace