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 an object in the Applies To list. |
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 only required if the band is ambiguous.
When removing a row within a band that contains child records, the child records are automatically removed.