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

GridViewSelection.SelectRowByKey(Object) Method

Selects the specified row within the ASPxGridView.

Namespace: DevExpress.Web.Data

Assembly: DevExpress.Web.v19.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");

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the SelectRowByKey(Object) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also