DataGridBuilder<T>.SelectedRowKeys(IEnumerable) Method
Allows you to select rows or determine which rows are selected. Applies only if selection.deferred is false. Mirrors the client-side selectedRowKeys option.
Namespace: DevExtreme.AspNet.Mvc.Builders
Assembly: DevExtreme.AspNet.Core.dll
Declaration
public DataGridBuilder<T> SelectedRowKeys(
IEnumerable value
)
Parameters
| Name | Type | Description |
|---|---|---|
| value | IEnumerable | The option value. |
Returns
| Type | Description |
|---|---|
| DataGridBuilder<T> | A reference to this instance after the method is called. |
Remarks
Use the following notation to set the option’s value:
@(Html.DevExtreme().DataGrid()
.SelectedRowKeys(new object[] { 1, 2, 3 })
)
See Also