Skip to main content

WebDataDetailRows.CollapseRowByKey(Object) Method

Collapses the specified master row (if expanded).

Namespace: DevExpress.Web.Data

Assembly: DevExpress.Web.v22.1.dll


public void CollapseRowByKey(
    object keyValue


Name Type Description
keyValue Object

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


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