Back to Devexpress

GridRowValidationEventArgs.UseCancellationToken Property

wpf-devexpress-dot-xpf-dot-grid-dot-gridrowvalidationeventargs-001a6364.md

latest2.0 KB
Original Source

GridRowValidationEventArgs.UseCancellationToken Property

Gets or sets whether the Update operation can be canceled.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public bool UseCancellationToken { get; set; }
vb
Public Property UseCancellationToken As Boolean

Property Value

TypeDescription
Boolean

true if the Update operation can be canceled; otherwise, false.

|

Remarks

Use the GridRowValidationEventArgs.UpdateRowResult property to specify a task that asynchronously posts changes to an underlying data source (database).

To allow users to cancel the Update operation, set the UseCancellationToken property to true and use the GridRowValidationEventArgs.CancellationToken in a cancel function. The CancellationToken notifies that the Update operation should be canceled.

See Also

GridRowValidationEventArgs Class

GridRowValidationEventArgs Members

DevExpress.Xpf.Grid Namespace