aspnet-devexpress-dot-data-dot-linq-dot-linqservermodedatasource-dcefb883.md
Occurs before an insert operation.
Namespace : DevExpress.Data.Linq
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
public event EventHandler<LinqServerModeDataSourceEditEventArgs> Inserting
Public Event Inserting As EventHandler(Of LinqServerModeDataSourceEditEventArgs)
The Inserting event's data class is LinqServerModeDataSourceEditEventArgs. The following 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. Inherited from HandledEventArgs. |
| 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. |
Handle the Inserting event to perform additional actions before the LinqServerModeDataSource performs the insert operation, or manually perform the operation.
To allow inserting, enable the LinqServerModeDataSource.EnableInsert option.
See Also
LinqServerModeDataSource Class