Back to Devexpress

ASPxGridBase.VisibleStartIndex Property

aspnet-devexpress-dot-web-dot-aspxgridbase-1734a201.md

latest2.7 KB
Original Source

ASPxGridBase.VisibleStartIndex Property

Gets the visible index of the first data item (row, card or record) displayed within the active page.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

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

Property Value

TypeDescription
Int32

An integer value that identifies the first data item.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the VisibleStartIndex 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.

asp-net-web-forms-grid-lookup-access-selected-data/CS/ASPxGridLookUpSelection/ServerSide_SingleSelect.aspx.cs#L24

csharp
ASPxGridView grid = ASPxGridLookup1.GridView;
for(int i = grid.VisibleStartIndex; i < grid.VisibleRowCount; i++) {
    int unitPrice = Convert.ToInt32(grid.GetRowValues(i, new string[] { "UnitPrice" }));

asp-net-web-forms-grid-lookup-access-selected-data/VB/ASPxGridLookUpSelection/ServerSide_SingleSelect.aspx.vb#L25

vb
Dim grid As ASPxGridView = ASPxGridLookup1.GridView
For i As Integer = grid.VisibleStartIndex To grid.VisibleRowCount - 1
    Dim unitPrice As Integer = Convert.ToInt32(grid.GetRowValues(i, New String() {"UnitPrice"}))

See Also

Traversing Rows

ASPxGridBase Class

ASPxGridBase Members

DevExpress.Web Namespace