corelibraries-devexpress-dot-data-dot-virtualservermoderowseventargs-fe2e0f02.md
Gets or sets the task that returns requested rows.
Namespace : DevExpress.Data
Assembly : DevExpress.Data.v25.2.dll
NuGet Package : DevExpress.Data
public Task<VirtualServerModeRowsTaskResult> RowsTask { get; set; }
Public Property RowsTask As Task(Of VirtualServerModeRowsTaskResult)
| Type | Description |
|---|---|
| Task<VirtualServerModeRowsTaskResult> |
A Task that returns requested rows.
|
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
loader = new VirtualServerModeDataLoader(e.ConfigurationInfo);
e.RowsTask = loader.GetRowsAsync(e);
}
connect-winforms-grid-to-dotnetcore-service-enable-editing/CS/WinForms.Client/MainForm.cs#L19
loader = new VirtualServerModeDataLoader(e.ConfigurationInfo);
e.RowsTask = loader.GetRowsAsync(e);
}
connect-winforms-grid-to-dotnetcore-service-enable-pbac/CS/WinForms.Client/MainForm.cs#L130
loader = new VirtualServerModeDataLoader(e.ConfigurationInfo);
e.RowsTask = loader.GetRowsAsync(e);
}
connect-winforms-grid-to-dotnetcore-service/VB/WinForms.Client/MainForm.vb#L13
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
loader = New VirtualServerModeDataLoader(e.ConfigurationInfo)
e.RowsTask = loader.GetRowsAsync(e)
End Sub
See Also
VirtualServerModeRowsEventArgs Class