Skip to main content

TcxCustomVerticalGrid.AddChild(TcxCustomRow,TcxCustomRowClass) Method

Adds a new child row to the control.

Declaration

function AddChild(AParent: TcxCustomRow; ARowClass: TcxCustomRowClass): TcxCustomRow;

Parameters

Name Type
AParent TcxCustomRow
ARowClass TcxCustomRowClass

Returns

Type
TcxCustomRow

Remarks

The AddChild method creates and adds a new child row to the grid control.

The AParent parameter specifies the parent row for the new row.

The ARowClass parameter specifies the class of the row to be created. Note: this parameter should never be nil. The TcxCustomVerticalGrid descendant classes check whether they can contain a row of the type passed via this parameter. If the type is not acceptable, a cxVerticalGridError exception is raised. The following table displays the types of row that TcxCustomVerticalGrid descendants can contain.

TcxCustomVerticalGrid descendants

TcxCustomRow descendants

TcxCategoryRow

TcxEditorRow

TcxMultiEditorRow

TcxDBEditorRow

TcxVerticalGrid

+

+

+


TcxVirtualVerticalGrid

+

+

+


TcxDBVerticalGrid

+



+

TcxRTTIInspector

+


+


By default, the new row is added to the end of the specified row’s collection. You can specify the position of the row being added via the Index property.

To add a new non-child row, you should use the Add method.

Also, you can copy rows from another vertical grid control via the AssignRows method.

See Also