Cancel Property

DataGridAutoGeneratingColumnEventArgs.Cancel Property

.NET Framework 4.6 and 4.5

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

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public bool Cancel { get; set; }

Property Value

Type: System.Boolean

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

Setting the Cancel property to true stops the column from being generated.

.NET Framework
Available since 4.0
Available since 2.0
Return to top
© 2015 Microsoft