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

WebDataSelection.SetSelectionByKey(Object, Boolean) Method

Selects or unselects the specified row within the ASPxGridView.

Namespace: DevExpress.Web.Data

Assembly: DevExpress.Web.v19.1.dll

Declaration

public void SetSelectionByKey(
    object keyValue,
    bool selected
)

Parameters

Name Type Description
keyValue Object

An object that identifies the data row by its key value.

selected Boolean

true to select the row; otherwise, false.

Remarks

To identify whether the specified row is selected, use the GridViewSelection.IsRowSelected method.

See Also