ComponentOne List for WinForms
C1.Win.C1List Namespace / DropDownList Class / Rebind Method / Rebind() Method

In This Topic
    Rebind() Method
    In This Topic
    Re-establishes the connection with the bound data source.
    Syntax
    'Declaration
     
    
    Public Overloads Sub Rebind() 
    public void Rebind()
    Remarks

    This method re-establishes the connection with the bound data source, causing the control to perform the same operations that occur when you set the DataSource property at design time.

    If you have not modified the list columns at design time, then executing the ReBind method will reset the columns, headings, and other properties based on the current data source.

    To force the list to reset the column bindings even if the columns were modified at design time, invoke the C1.Win.C1List.ListBase.Frame.ClearFields method immediately before ReBind. Conversely, to cancel the list's automatic layout response and force the list to use the current column/field layout, invoke the C1.Win.C1List.ListBase.C1ListBase.HoldFields method immediately before ReBind.

    See Also