GridViewSelection.SelectRowByKey(Object) Method

Selects the specified row within the ASPxGridView.

Namespace: DevExpress.Web.Data

Assembly: DevExpress.Web.v21.1.dll

Declaration

public void SelectRowByKey(
    object keyValue
)

Parameters

Name Type Description
keyValue Object

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

Remarks

Note that it is required to check if a key object is valid.

The following code snippet illustrates how to select a row when a composite key is used.

ASPxGridView1.Selection.SelectRowByKey("Key1|Key2|...|KeyN");
See Also