Skip to main content
A newer version of this page is available. .

LinqServerModeDataSource.EnableInsert Property

Gets or sets whether an insert operation is allowed.

Namespace: DevExpress.Data.Linq

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

[DefaultValue(false)]
public bool EnableInsert { get; set; }

Property Value

Type Default Description
Boolean **false**

true if an insert operation is allowed; otherwise, false.

Remarks

To manually handle insert operations, handle the LinqServerModeDataSource.Inserting event.

<dx:LinqServerModeDataSource ID="LinqServerModeDataSource1" runat="server" ContextTypeName="NWindEntities" 
  TableName="Products" EnableDelete="true" EnableInsert="true" EnableUpdate="true" />
See Also