Databindings

  • Thread starter Thread starter No_So_Clever
  • Start date Start date
N

No_So_Clever

Hi There,

I wonder If Somebody could Kindly Help me?

Whats the Difference between:

textBoxID.DataBindings.Add("Text", custList, "CustomerID")
textBoxTitle.DataBindings.Add("Text", custList, "ContactTitle")
textBoxLastName.DataBindings.Add("Text", custList, "ContactName")
textBoxFirstName.DataBindings.Add("Text", custList, "CompanyName")
textBoxAddress.DataBindings.Add("Text", custList, "Address")

and

dgdcustlist.SetDataBinding(dsCustList, "CustomerLists")

Many Thanks
NSC
 
Whats the Difference between:
Almost the same as apples and pears.

The first binds a single property from a simple control to another property

The seconds binds a list of properties to the list of items from a complex
control

However the bindingcontext (currencymanager) works for both the same.

I hope this helps,

Cor
 
Back
Top