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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top