aspnet-devexpress-dot-web-dot-aspxgridbase-1734a201.md
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
public int VisibleStartIndex { get; }
Public ReadOnly Property VisibleStartIndex As Integer
| Type | Description |
|---|---|
| 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.
ASPxGridView grid = ASPxGridLookup1.GridView;
for(int i = grid.VisibleStartIndex; i < grid.VisibleRowCount; i++) {
int unitPrice = Convert.ToInt32(grid.GetRowValues(i, new string[] { "UnitPrice" }));
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