ComponentOne List for WinForms
C1.Win.List.ListBase Namespace / C1ListBase 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 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 HoldFields method immediately before ReBind.

    See Also