MVCxGridView.GetChildDataRow(Int32, Int32) Method
Returns a DataRow object that represents the specified row contained in the specified group.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v23.2.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
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 in the group by its index. |
Returns
Type | Description |
---|---|
DataRow | A DataRow object that represents the specified row contained in the specified group. |
Remarks
The GetChildDataRow method allows you to obtain a data row contained in the specified group row. The group row is identified by its visible index. A data row is obtained by its index in the group. To obtain the number of data rows contained in the specified group, use the MVCxGridView.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 MVCxGridView.GetChildRow method to get an object that represents the specified row.