Skip to main content

WebDataSelection.SetSelectionByKey(Object, Boolean) Method

Selects or unselects the specified row within the ASPxGridView.

Namespace: DevExpress.Web.Data

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

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.

View Example: How to select/deselect all rows in a group when Grid View data is grouped by one column

See Also