Skip to content

DeleteAll Method

See Also

GridRecord Collection

See Also


Description

Removes all GridRecordItems from the GridRecord row's collection of GridRecordItems.

Syntax

Public Sub DeleteAll()

Remarks

Removes all GridRecordItems from this GridRecord's collection of GridRecordItems. This only removes the items in the collection of GridRecordItems; the GridRecord Row will still remain. If the Record/Row is visible, then a blank Record/Row will be left. You can then add some new GridRecordItems. Any child items will still remain, and the expand/collapse button will still appear on the new item.

Example

GridRecord DeleteAll Method Sample (Visual Basic)

This sample illustrates how to use the GridRecord DeleteAll method to remove all GridRecordItems from a GridRecord/Row so new GridRecordItems can be added.

Dim Record As GridRecord  
Dim Item As GridRecordItem  

' Gets a reference to the GridRecord in the 1st row  
Set Record = wndGridControl.Rows(0).Record  

    ' Removes all GridRecordItems from the GridRecord  
    Record.DeleteAll  

    ' Add new items to the GridRecord  
    Set Item = Record.AddItem("")  
        Item.Icon = 2  
    Set Item = Record.AddItem("")  
        Item.HasCheckbox = True  
        Item.Checked = False  
    Record.AddItem "RE: Toolkit Pro"  
    Record.AddItem "Tom Brown"  
    Record.AddItem "10/15/2004"  
    Record.AddItem "25k"  

See Also

GridRecord Collection


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.