ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBDropdown.Rebind Method (Boolean)

Reinitializes grid with data from its data source.

[Visual Basic]

Overloads Public Sub Rebind( _

ByVal holdFields As Boolean _

)

[C#]

public void Rebind(

bool holdFields

);

[Delphi]

public procedure Rebind(

holdFields: Boolean

); overload;

Parameters

holdFields

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

Example

The following code uses the Rebind method and the holdFields parameter to reinitialize the grid data from its data source and preserve its current column layout:

·      Visual Basic

       Me.C1TrueDBDropdown1.Rebind(True)

·      C#

       this.c1TrueDBDropdown1.Rebind(true);

·      Delphi

       Self.C1TrueDBDropdown1.Rebind(true);

See Also

C1TrueDBDropdown Class | C1TrueDBDropdown Members | C1.Win.C1TrueDBGrid Namespace | C1TrueDBDropdown.Rebind Overload List


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.