Back to Devexpress

VirtualServerModeRowsEventArgs.RowsTask Property

corelibraries-devexpress-dot-data-dot-virtualservermoderowseventargs-fe2e0f02.md

latest4.1 KB
Original Source

VirtualServerModeRowsEventArgs.RowsTask Property

Gets or sets the task that returns requested rows.

Namespace : DevExpress.Data

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
public Task<VirtualServerModeRowsTaskResult> RowsTask { get; set; }
vb
Public Property RowsTask As Task(Of VirtualServerModeRowsTaskResult)

Property Value

TypeDescription
Task<VirtualServerModeRowsTaskResult>

A Task that returns requested rows.

|

Remarks

To provide a batch of rows, create a Task< VirtualServerModeRowsTaskResult > that returns requested rows and assign it to the RowTask event parameter.

Tip

A Task typically executes asynchronously. To return a batch of rows synchronously, create the task with the Task.FromResult method (available in .NET Framework 4.5+).

The following code snippets (auto-collected from DevExpress Examples) contain references to the RowsTask 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/MainForm.cs#L17

csharp
loader = new VirtualServerModeDataLoader(e.ConfigurationInfo);
    e.RowsTask = loader.GetRowsAsync(e);
}

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

csharp
loader = new VirtualServerModeDataLoader(e.ConfigurationInfo);
    e.RowsTask = loader.GetRowsAsync(e);
}

connect-winforms-grid-to-dotnetcore-service-enable-pbac/CS/WinForms.Client/MainForm.cs#L130

csharp
loader = new VirtualServerModeDataLoader(e.ConfigurationInfo);
    e.RowsTask = loader.GetRowsAsync(e);
}

connect-winforms-grid-to-dotnetcore-service/VB/WinForms.Client/MainForm.vb#L13

vb
loader = New VirtualServerModeDataLoader(e.ConfigurationInfo)
    e.RowsTask = loader.GetRowsAsync(e)
End Sub

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

vb
loader = New VirtualServerModeDataLoader(e.ConfigurationInfo)
    e.RowsTask = loader.GetRowsAsync(e)
End Sub

See Also

VirtualServerModeRowsEventArgs Class

VirtualServerModeRowsEventArgs Members

DevExpress.Data Namespace