Back to Devexpress

ASPxGridView.DetailRows Property

aspnet-devexpress-dot-web-dot-aspxgridview-bbef6e73.md

latest2.1 KB
Original Source

ASPxGridView.DetailRows Property

Gets the ASPxGridView’s detail rows.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public WebDataDetailRows DetailRows { get; }
vb
Public ReadOnly Property DetailRows As WebDataDetailRows

Property Value

TypeDescription
WebDataDetailRows

A WebDataDetailRows object that provides methods used to expand/collapse detail rows.

|

Remarks

The ASPxGridView supports master-detail data presentation. Each master grid can be linked to multiple detail grids. The DetailRows property provides methods that allow you to expand/collapse detail rows you desire. Use the VisibleCount property to obtain the number of expanded detail rows.

To learn more, see Expanding and Collapsing Detail Rows.

csharp
protected void ASPxGridView1_DataBound(object sender, EventArgs e) {  
    ASPxGridView gv = (ASPxGridView)sender;  
    gv.DetailRows.ExpandAllRows();  
}

See Also

Master-Detail Relationship

Master-Detail: Implementation

Grid View

ASPxGridView Class

ASPxGridView Members

DevExpress.Web Namespace