Back to Devexpress

LinqServerModeDataSource.Deleting Event

aspnet-devexpress-dot-data-dot-linq-dot-linqservermodedatasource-ace23b3f.md

latest2.7 KB
Original Source

LinqServerModeDataSource.Deleting Event

Occurs before a delete operation.

Namespace : DevExpress.Data.Linq

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event EventHandler<LinqServerModeDataSourceEditEventArgs> Deleting
vb
Public Event Deleting As EventHandler(Of LinqServerModeDataSourceEditEventArgs)

Event Data

The Deleting event's data class is LinqServerModeDataSourceEditEventArgs. The following properties provide information specific to this event:

PropertyDescription
CallbackGets or sets the asynchronous callback method that a data-bound control supplies to a data source for asynchronous insert, update, or delete data operations.
HandledGets or sets a value that indicates whether the event handler has completely handled the event or whether the system should continue its own processing. Inherited from HandledEventArgs.
KeysGets a dictionary of field name/value pairs that represent the primary key of the row to process.
OldValuesGets a dictionary that contains the original field name/value pairs for the processed row.
ValuesGets a dictionary of the non-key field name/value pairs for the row to process.

Remarks

Handle the Deleting event to perform additional actions before the LinqServerModeDataSource performs the delete operation, or manually perform the operation.

To allow deleting, enable the LinqServerModeDataSource.EnableDelete option.

See Also

LinqServerModeDataSource Class

LinqServerModeDataSource Members

DevExpress.Data.Linq Namespace