Back to Devexpress

CustomColumnSortEventArgs.RowObject1 Property

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

latest3.2 KB
Original Source

CustomColumnSortEventArgs.RowObject1 Property

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

Declaration

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

Property Value

TypeDescription
Object

An object that represents the first row being compared.

|

Remarks

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

csharp
{
    PartContainer row1 = e.RowObject1 as PartContainer;
    PartContainer row2 = e.RowObject2 as PartContainer;

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

vb
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

ListSourceRowIndex1

GetListSourceRowCellValue

CustomColumnSortEventArgs Class

CustomColumnSortEventArgs Members

DevExpress.XtraGrid.Views.Base Namespace