LinqDataSourceView.ValidateDeleteSupported Method (IDictionary, IDictionary)
.NET Framework (current version)
Validates that the conditions exist to perform a delete operation.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
Parameters
- keys
-
Type:
System.Collections.IDictionary
A dictionary of key values for the data records to delete.
- oldValues
-
Type:
System.Collections.IDictionary
A dictionary that contains row values to delete.
| Exception | Condition |
|---|---|
| InvalidOperationException | |
| NotSupportedException | CanDelete is false. |
You cannot delete data when the GroupBy property or the SelectNew property contains a value other than null. For more information, see the LinqDataSource.EnableDelete property.
.NET Framework
Available since 3.5
Available since 3.5
Show: