FlexGrid for WinForms | ComponentOne
C1.Win.C1FlexGrid Namespace / RowCollection Class / InsertNode Method / InsertNode(Int32,Int32) Method
The position where the new node row will be inserted.
Outline level for the new node row.

In This Topic
    InsertNode(Int32,Int32) Method
    In This Topic
    Adds a new Node row to the row collection at a specified position.
    Syntax
    'Declaration
     
    
    Public Overloads Function InsertNode( _
       ByVal index As Integer, _
       ByVal level As Integer _
    ) As Node
    public Node InsertNode( 
       int index,
       int level
    )

    Parameters

    index
    The position where the new node row will be inserted.
    level
    Outline level for the new node row.

    Return Value

    A reference to the Node that was added to the collection.
    Remarks
    This method is especially useful when the grid is bound to a data source, because in this case you can't change the value of the IsNode property. When the grid is unbound, you can add rows and turn them into nodes later using the IsNode property.
    See Also