<< Return to Main Index

< Return to Class Index

IGXHierarchyGrid::GetChildAt

virtual IGXHierarchyGrid* GetChildAt(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

A reference to the child corresponding to the specified logical parent row. If no child exists at the specified row, then NULL will be returned.

Remarks

Call GetChildAt 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::GetChildControlAt IGXHierarchyGrid::GetGridFromControlId IGXHierarchyGrid::SetCommonChildGridType

IGXHierarchyGrid

Class Overview | Class Members