windowsforms-devexpress-dot-xtraverticalgrid-dot-events-dot-customizationformdeletingcategoryeventargs.md
Gets or sets a value specifying whether a row is allowed to be deleted.
Namespace : DevExpress.XtraVerticalGrid.Events
Assembly : DevExpress.XtraVerticalGrid.v25.2.dll
NuGet Packages : DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid
public bool CanDelete { get; set; }
Public Property CanDelete As Boolean
| Type | Description |
|---|---|
| Boolean |
true if the specified category row can be deleted from the VGridRows collection; otherwise, false.
|
Use the CanDelete property to define whether the selected category row should be actually deleted. The deleted row can be accessed via the CategoryEventArgs.Category property.
If providing a handler for the VGridControlBase.CustomizationFormDeletingCategory event, the CanDelete property value is left set to true (the default value), the specified category row disappears from the Categories page of the Customization Form. This means that it is successfully deleted and no longer belongs to any row collection within your grid control. If the deleted row was a parent row (contained child rows), its children are processed based on the VGridOptionsBehavior.PreserveChildRows option setting:
If the event handler sets the CanDelete property to false , rows are not deleted and remain displayed within the Categories page.
See Also
CustomizationFormDeletingCategoryEventArgs Class