A newer version of this page is available. Switch to the current version.

GridViewSettings<RowType>.KeyFields<ValueType>(Expression<Func<RowType, ValueType>>[]) Method

Allows defining the key fields.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v18.2.dll

Declaration

public void KeyFields<ValueType>(
    params Expression<Func<RowType, ValueType>>[] keyExpressions
)
Public Sub KeyFields(Of ValueType)(
    ParamArray keyExpressions As Expression(Of Func(Of RowType, ValueType))()
)

Parameters

Name Type Description
keyExpressions Expression<Func<RowType, ValueType>>[]

An expression that identifies a key field.

Type Parameters

Name
ValueType
See Also