Back to Devexpress

CustomColumnSortEventArgs.RowObject2 Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-customcolumnsorteventargs-dot-rowobject2.md

latest3.1 KB
Original Source

CustomColumnSortEventArgs.RowObject2 Property

Gets the second row object being compared.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

NuGet Packages : DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

csharp
public object RowObject2 { get; }
vb
Public ReadOnly Property RowObject2 As Object

Property Value

TypeDescription
Object

An object that represents the second row being compared.

|

Remarks

The index of this row in the underlying data source is represented by the CustomColumnSortEventArgs.ListSourceRowIndex2 property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RowObject2 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-display-custom-rows/CS/CustomRowInGrid/CustomRowInGrid/Form1.cs#L49

csharp
PartContainer row1 = e.RowObject1 as PartContainer;
PartContainer row2 = e.RowObject2 as PartContainer;
if ((row1.ID < 0) && (row2.ID >= 0))

winforms-grid-display-custom-rows/VB/CustomRowInGrid/Form1.vb#L46

vb
Dim row1 As PartContainer = TryCast(e.RowObject1, PartContainer)
Dim row2 As PartContainer = TryCast(e.RowObject2, PartContainer)
If (row1.ID < 0) AndAlso (row2.ID >= 0) Then

See Also

ListSourceRowIndex2

GetListSourceRowCellValue

CustomColumnSortEventArgs Class

CustomColumnSortEventArgs Members

DevExpress.XtraGrid.Views.Base Namespace