Removes a row from an MSHFlexGrid at run time. This property doesnÆt 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 MSHFlexGrid 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 MSHFlexGrid is bound to a hierarchical Recordset, number is required. If the BandDisplay property is set to vertical, number is only needed if the band is ambiguous.
When removing a row within a band that contains child records, the child records are automatically removed.