[]
        
(Showing Draft Content)

C1.Win.List.ListBase.C1ListBase.Rebind

Rebind Method

Rebind()

Re-establishes the connection with the bound data source.

Declaration
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 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.

Rebind(bool)

Reinitializes list with data from its data source.

Declaration
public void Rebind(bool holdFields)
Parameters
Type Name Description
bool holdFields

True to preserves current column layout. False retrieves the schema from the datasource.