<< Return to Main Index

< Return to Class Index

IGXHierarchyGrid::GetChildControlAt

WORD GetChildControlAt(ROWCOL nLogRow, BOOL bForceCreation = FALSE);

nLogRow

Specifies the logical row id.

bForceCreation

Specifies whether the child should be created if not already available.

Return Value

Returns the child grid window wrapper control id at the logical nRow.

Remarks

Call GetChildControlAt with bForceCreation set to TRUE from your samples to get a reference to the child. But, note that a child can be automatically created only if the parent has common child grid type set (via SetCommonChildGridType). Hence GetChildAt will return NULL if the child has not been created yet and if the child grid types are not common.

See Also

IGXHierarchyGrid::GetParent IGXHierarchyGrid::GetParentGrid IGXHierarchyGrid::GetChildAt IGXHierarchyGrid::GetGridFromControlId IGXHierarchyGrid::SetCommonChildGridType

IGXHierarchyGrid

Class Overview | Class Members