Skip to main content

WebDataDetailRows.CollapseRowByKey(Object) Method

Collapses the specified master row (if expanded).

Namespace: DevExpress.Web.Data

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web

Declaration

public void CollapseRowByKey(
    object keyValue
)

Parameters

Name Type Description
keyValue Object

A String value that identifies the row by its key value.

Remarks

Use the CollapseRowByKey method to collapse a single master row contained within the ASPxGridView. Unlike the WebDataDetailRows.CollapseRow method, which collapses a row displayed within the active page, the CollapseRowByKey method collapses any master row contained within the ASPxGridView. If the master row with the specified key value was not found, the CollapseRowByKey method does nothing.

To learn more, see Expanding and Collapsing Detail Rows.

See Also