Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Collapse]API Reference
  [Collapse]DevExpress.Data.Linq
   [Collapse]EntityServerModeDataSource Class
     EntityServerModeDataSource Members
     EntityServerModeDataSource Constructor
    [Expand]EntityServerModeDataSource Properties
    [Collapse]EntityServerModeDataSource Events
      Deleting Event
      ExceptionThrown Event
      InconsistencyDetected Event
      Inserting Event
      Selecting Event
      Updating Event
    [Expand]EntityServerModeDataSource Methods
   [Expand]LinqServerModeDataSource Class
   [Expand]LinqServerModeDataSourceEditEventArgs Class
   [Expand]LinqServerModeDataSourceSelectEventArgs Class
  [Expand]DevExpress.Web
  [Expand]DevExpress.Web.ASPxGauges
  [Expand]DevExpress.Web.ASPxGauges.Base
  [Expand]DevExpress.Web.ASPxGauges.Scripts
  [Expand]DevExpress.Web.ASPxHtmlEditor
  [Expand]DevExpress.Web.ASPxHtmlEditor.Localization
  [Expand]DevExpress.Web.ASPxHtmlEditor.Scripts
  [Expand]DevExpress.Web.ASPxPivotGrid
  [Expand]DevExpress.Web.ASPxPivotGrid.Data
  [Expand]DevExpress.Web.ASPxPivotGrid.HtmlControls
  [Expand]DevExpress.Web.ASPxPivotGrid.Scripts
  [Expand]DevExpress.Web.ASPxRichEdit
  [Expand]DevExpress.Web.ASPxRichEdit.Localization
  [Expand]DevExpress.Web.ASPxRichEdit.Scripts
  [Expand]DevExpress.Web.ASPxScheduler
  [Expand]DevExpress.Web.ASPxScheduler.Controls
  [Expand]DevExpress.Web.ASPxScheduler.Drawing
  [Expand]DevExpress.Web.ASPxScheduler.Localization
  [Expand]DevExpress.Web.ASPxScheduler.Reporting
  [Expand]DevExpress.Web.ASPxScheduler.Scripts
  [Expand]DevExpress.Web.ASPxSpellChecker
  [Expand]DevExpress.Web.ASPxSpellChecker.Localization
  [Expand]DevExpress.Web.ASPxSpellChecker.Scripts
  [Expand]DevExpress.Web.ASPxSpreadsheet
  [Expand]DevExpress.Web.ASPxSpreadsheet.Localization
  [Expand]DevExpress.Web.ASPxSpreadsheet.Scripts
  [Expand]DevExpress.Web.ASPxTreeList
  [Expand]DevExpress.Web.ASPxTreeList.Localization
  [Expand]DevExpress.Web.ASPxTreeList.Scripts
  [Expand]DevExpress.Web.Captcha
  [Expand]DevExpress.Web.Data
  [Expand]DevExpress.Web.Internal
  [Expand]DevExpress.Web.Localization
  [Expand]DevExpress.Web.Mvc
  [Expand]DevExpress.Web.Mvc.BinderSettings
  [Expand]DevExpress.Web.Mvc.Controllers
  [Expand]DevExpress.Web.MVC.Scripts
  [Expand]DevExpress.Web.Mvc.UI
  [Expand]DevExpress.Web.Office
  [Expand]DevExpress.Web.Office.Internal
  [Expand]DevExpress.Web.Rendering
  [Expand]DevExpress.Web.Scripts
  [Expand]DevExpress.XtraCharts.Web
  [Expand]DevExpress.XtraCharts.Web.Designer
  [Expand]DevExpress.XtraCharts.Web.Scripts
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

EntityServerModeDataSource.Deleting Event

Occurs before a delete operation.

Namespace:DevExpress.Data.Linq
Assembly:DevExpress.Web.v17.1.dll

Expanded Syntax

Expanded Event Data

The event handler receives an argument of type LinqServerModeDataSourceEditEventArgs containing data related to this event.

The following LinqServerModeDataSourceEditEventArgs properties provide information specific to this event.
Property Description
Callback Gets or sets the asynchronous callback method that a data-bound control supplies to a data source for asynchronous insert, update, or delete data operations.
Handled Gets or sets a value that indicates whether the event handler has completely handled the event or whether the system should continue its own processing.
Keys Gets a dictionary of field name/value pairs that represent the primary key of the row to process.
OldValues Gets a dictionary that contains the original field name/value pairs for the processed row.
Values Gets a dictionary of the non-key field name/value pairs for the row to process.

Expanded Remarks

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

To allow deleting, enable the EnableDelete option.

Expanded See Also

How would you rate this topic?​​​​​​​