DataGridCurrentChangingEventArgsCancel Property

Gets or sets a value that indicates whether the CurrentItem change should be canceled.

Definition

Namespace: Avalonia.Collections
Assembly: Avalonia.Controls.DataGrid (in Avalonia.Controls.DataGrid.dll) Version: 11.3.999
public bool Cancel { get; set; }

Return Value

Boolean
true if the event should be canceled; otherwise, false. The default is false.

Exceptions

InvalidOperationExceptionThe IsCancelable property value is false.

See Also