Skip to main content

DataChangeBuilder.Type(GridDataChangeType) Method

Data change type. Mirrors the client-side type option.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

Declaration

public DataChangeBuilder Type(
    GridDataChangeType value
)

Parameters

Name Type Description
value GridDataChangeType

The option value.

Returns

Type Description
DataChangeBuilder

A reference to this instance after the method is called.

Remarks

Use the following notation to set the option value:

@(Html.DevExtreme().DataGrid()
    .Editing(editing => editing
        .Changes(change => {
            change.Add().Type(GridDataChangeType.Insert);
        })
    )
)
See Also