Back to Devexpress

DXCollectionView.GetChildItemHandle(Int32, Int32) Method

maui-devexpress-dot-maui-dot-collectionview-dot-dxcollectionview-dot-getchilditemhandle-x28-system-dot-int32-system-dot-int32-x29.md

latest2.0 KB
Original Source

DXCollectionView.GetChildItemHandle(Int32, Int32) Method

Returns the handle of the item at the specified position within the specified group.

Namespace : DevExpress.Maui.CollectionView

Assembly : DevExpress.Maui.CollectionView.dll

NuGet Package : DevExpress.Maui.CollectionView

Declaration

csharp
public int GetChildItemHandle(
    int groupItemHandle,
    int childIndex
)

Parameters

NameTypeDescription
groupItemHandleInt32

The group header handle (a negative integer, starting from -1 ) or the group’s zero-based index within the CollectionView’s collection of groups.

| | childIndex | Int32 |

A zero-based integer that specifies the data item’s position within the group.

|

Returns

TypeDescription
Int32

The item handle.

|

Remarks

The GetChildItemHandle method returns an invalid item handle (DXCollectionView.InvalidItemHandle) if the specified group does not contain a data item at the specified position (the GetChildItemCount method returns the number of items in the group). An invalid item handle is also returned if the specified group header handle (or the group’s index) does not exist.

See Also

DXCollectionView Class

DXCollectionView Members

DevExpress.Maui.CollectionView Namespace