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

ASPxGridView.GetChildDataRow(Int32, Int32) Method

Returns a DataRow object that represents the specified row contained within the specified group.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v18.2.dll

Declaration

public virtual DataRow GetChildDataRow(
    int groupRowVisibleIndex,
    int childIndex
)

Parameters

Name Type Description
groupRowVisibleIndex Int32

An integer value that identifies a group row by its visible index.

childIndex Int32

An integer value that identifies a data row within the group by its index.

Returns

Type Description
DataRow

A DataRow object that represents the specified row contained within the specified group.

Remarks

The GetChildDataRow method allows you to obtain a data row contained within the specified group row. The group row is identified by its visible index. A data row is obtained by its index within the group. To obtain the number of data rows contained within the specified group, use the ASPxGridView.GetChildRowCount method.

Note

Since the GetChildDataRow method returns a DataRow object, it requires the bound data source support this type of object (e.g. Access Data Source, SQL Data Source). If the bound data source does not support DataRow objects, the GetChildDataRow method returns null (Nothing in Visual Basic). In this case, you can use the ASPxGridView.GetChildRow method to get an object that represents the specified row.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GetChildDataRow(Int32, Int32) 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