Back to Devexpress

VirtualServerModeRowsEventArgs.CurrentRowCount Property

corelibraries-devexpress-dot-data-dot-virtualservermoderowseventargs-81c09a3b.md

latest4.5 KB
Original Source

VirtualServerModeRowsEventArgs.CurrentRowCount Property

Gets the count of rows currently loaded to the grid.

Namespace : DevExpress.Data

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

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

Property Value

TypeDescription
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

csharp
{
    Debug.WriteLine($"Fetching data rows {e.CurrentRowCount} to {e.CurrentRowCount + BatchSize}, sorting by {SortField} ({(SortAscending ? "asc" : "desc")})");
    using var client = new HttpClient();

connect-winforms-grid-to-dotnetcore-service-enable-editing/CS/WinForms.Client/VirtualServerModeDataLoader.cs#L35

csharp
{
    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-enable-pbac/CS/WinForms.Client/VirtualServerModeDataLoader.cs#L35

csharp
{
    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

vb
Return Await Task.Run(Async Function()
                          Debug.WriteLine($"Fetching data rows {e.CurrentRowCount} to {e.CurrentRowCount + BatchSize}, sorting by {SortField} ({If(SortAscending, "asc", "desc")})")

connect-winforms-grid-to-dotnetcore-service-enable-editing/VB/WinForms.Client/VirtualServerModeDataLoader.vb#L33

vb
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

VirtualServerModeRowsEventArgs Members

DevExpress.Data Namespace