corelibraries-devexpress-dot-data-dot-virtualservermoderowseventargs-81c09a3b.md
Gets the count of rows currently loaded to the grid.
Namespace : DevExpress.Data
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
public int CurrentRowCount { get; }
Public ReadOnly Property CurrentRowCount As Integer
| Type | Description |
|---|---|
| Int32 |
The number of loaded rows.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the CurrentRowCount 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.
connect-winforms-grid-to-dotnetcore-service/CS/WinForms.Client/VirtualServerModeDataLoader.cs#L37
{
Debug.WriteLine($"Fetching data rows {e.CurrentRowCount} to {e.CurrentRowCount + BatchSize}, sorting by {SortField} ({(SortAscending ? "asc" : "desc")})");
using var client = new HttpClient();
{
Debug.WriteLine($"Fetching data rows {e.CurrentRowCount} to {e.CurrentRowCount + BatchSize}, sorting by {SortField} ({(SortAscending ? "asc" : "desc")})");
var dataFetchResult = await DataServiceClient.GetOrderItemsAsync(e.CurrentRowCount, BatchSize, SortField, SortAscending);
{
Debug.WriteLine($"Fetching data rows {e.CurrentRowCount} to {e.CurrentRowCount + BatchSize}, sorting by {SortField} ({(SortAscending ? "asc" : "desc")})");
var dataFetchResult = await DataServiceClient.GetOrderItemsAsync(e.CurrentRowCount, BatchSize, SortField, SortAscending);
connect-winforms-grid-to-dotnetcore-service/VB/WinForms.Client/VirtualServerModeDataLoader.vb#L35
Return Await Task.Run(Async Function()
Debug.WriteLine($"Fetching data rows {e.CurrentRowCount} to {e.CurrentRowCount + BatchSize}, sorting by {SortField} ({If(SortAscending, "asc", "desc")})")
Return Task.Run(Async Function()
Debug.WriteLine($"Fetching data rows {e.CurrentRowCount} to {e.CurrentRowCount + BatchSize}, sorting by {SortField} ({If(SortAscending, "asc", "desc")})")
Dim dataFetchResult As DataFetchResult = Await DataServiceClient.GetOrderItemsAsync(e.CurrentRowCount, BatchSize, SortField, SortAscending)
See Also
VirtualServerModeRowsEventArgs Class