windowsforms-devexpress-dot-xtragrid-dot-views-dot-base-dot-rowfiltereventargs-0805f705.md
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
public int ListSourceRow { get; }
Public ReadOnly Property ListSourceRow As Integer
| Type | Description |
|---|---|
| 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
{
if (IsRowInvisible(e.ListSourceRow))
{
winforms-grid-toggle-row-visibility/VB/WindowsApplication1/RowVisibilityHelper.vb#L57
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