windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-customcolumnsorteventargs-dot-rowobject2.md
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
public object RowObject2 { get; }
Public ReadOnly Property RowObject2 As Object
| Type | Description |
|---|---|
| Object |
An object that represents the second row being compared.
|
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
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
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
CustomColumnSortEventArgs Class