Visual Basic: MSFlexGrid/MSHFlexGrid Controls

AddItem Method (MSHFlexGrid)

SeeAlso    Example    Applies To

Adds a row to an MSHFlexGrid. This property doesnt support named arguments.

Syntax

*object.*AddItem(string, index)

The AddItem method syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
string Required. A string expression displayed in the newly added row. To add multiple strings (for multiple columns in the row), use the tab character (vbTab) to separate each string.
index Optional. A Long value indicating the position within the control. This position is where the new row is placed. For the first row, index=0. If index is omitted, the new row becomes the last row in the band. Note that index is BandColIndex in the MSHFlexGrid.

Remarks

Not available when the control is bound to a hierarchical recordset.