CanDelete Property

LinqDataSourceView.CanDelete Property

.NET Framework (current version)
 

Gets a value that indicates whether the LinqDataSourceView object that is associated with the current LinqDataSource control supports the delete operation.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

public override bool CanDelete { get; }

Property Value

Type: System.Boolean

true if the operation is supported; otherwise, false. The default is false.

The CanDelete property returns true if the EnableDelete property is set to true. However, a delete operation can still fail if the associated data properties are not set or are not set correctly.

.NET Framework
Available since 3.5
Return to top
Show:
© 2016 Microsoft