ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.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.C1TrueDBGrid1.Rebind(True)

·      C#

       this.c1TrueDBGrid1.Rebind(true);

·      Delphi

       Self.C1TrueDBGrid1.Rebind(True);

See Also

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


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