Back to Devexpress

RowFilterEventArgs.ListSourceRow Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-rowfiltereventargs-0805f705.md

latest2.8 KB
Original Source

RowFilterEventArgs.ListSourceRow Property

Gets the index in the data source of the row currently being processed. Row handles are not data source indexes, see the Accessing Rows in Code. Row Handles section of the “Rows” article for more information.

Namespace : DevExpress.XtraGrid.Views.Base

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

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

Property Value

TypeDescription
Int32

A zero-based integer that identifies the row’s index in the underlying data source.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ListSourceRow 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-toggle-row-visibility/CS/WindowsApplication1/RowVisibilityHelper.cs#L54

csharp
{
    if (IsRowInvisible(e.ListSourceRow))
    {

winforms-grid-toggle-row-visibility/VB/WindowsApplication1/RowVisibilityHelper.vb#L57

vb
Private Sub GridView_CustomRowFilter(ByVal sender As Object, ByVal e As DevExpress.XtraGrid.Views.Base.RowFilterEventArgs)
    If IsRowInvisible(e.ListSourceRow) Then
        e.Visible = False

See Also

RowFilterEventArgs Class

RowFilterEventArgs Members

DevExpress.XtraGrid.Views.Base Namespace