Binds the grid at run time.
[Visual Basic]
Overloads Public Sub SetDataBinding( _
ByVal dataSource As Object, _
ByVal dataMember As String _
)
[C#]
public void SetDataBinding(
object dataSource,
string dataMember
);
[Delphi]
public procedure SetDataBinding(
dataSource: Object;
dataMember: String
); overload;
Parameters
dataSource
Source of the data.
dataMember
The table to bind to within the object returned by the DataSource property.
Remarks
The call to SetDataBinding(object dataSource, string dataMember) assumes False for the holdFields parameter.
Example
The following code provides an example of the SetDataBinding method:
Me.C1TrueDBGrid1.SetDataBinding(Me.DsCustomers.Customers, ")
· C#
this.c1TrueDBGrid1.SetDataBinding(this.DsCustomers.Customers, ");
· Delphi
Self.C1TrueDBGrid1.SetDataBinding(Self.DsCustomers.Customers, '');
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace | C1TrueDBGrid.SetDataBinding Overload List
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |