windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-customcolumnsorteventargs-dot-rowobject1.md
Gets the first 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 RowObject1 { get; }
Public ReadOnly Property RowObject1 As Object
| Type | Description |
|---|---|
| Object |
An object that represents the first row being compared.
|
The index of this row in the underlying data source is represented by the CustomColumnSortEventArgs.ListSourceRowIndex1 property.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the RowObject1 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#L48
{
PartContainer row1 = e.RowObject1 as PartContainer;
PartContainer row2 = e.RowObject2 as PartContainer;
winforms-grid-display-custom-rows/VB/CustomRowInGrid/Form1.vb#L45
Private Sub gridView1_CustomColumnSort(ByVal sender As Object, ByVal e As DevExpress.XtraGrid.Views.Base.CustomColumnSortEventArgs) Handles gridView1.CustomColumnSort
Dim row1 As PartContainer = TryCast(e.RowObject1, PartContainer)
Dim row2 As PartContainer = TryCast(e.RowObject2, PartContainer)
See Also
CustomColumnSortEventArgs Class