Share via


RemoveItem Method (ModHFGrid)

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Removes a row from a ModHFGrid at run time. This property does not support named arguments.

Syntax

object.RemoveItem(index, number)

The RemoveItem method syntax has these parts:

Part Description
object An object expression that evaluates to the ModHFGrid Control object.
index An integer representing the row within the ModHFGrid to remove. For the first row, index=0.
number A Long value that specifies the band from which to remove the row.

Remarks

This method deletes the entire row specified. To clear data without removing the rows, use the Clear method.

If the BandDisplay property is set to horizontal and the ModHFGrid is bound to a hierarchical Recordset, number is required. If the BandDisplay property is set to vertical, number is required only if the band is ambiguous.

When removing a row within a band that contains child records, the child records are removed automatically.

See Also

Clear Method (ModHFGrid) | ModHFGrid Control