Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo Boxes.
Message
De
09/12/2003 17:27:48
 
 
À
09/12/2003 17:14:38
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Divers
Thread ID:
00857406
Message ID:
00857452
Vues:
35
>>By databind, do you mean setting the datasource, displaymember and valuemember properties in my code?<

No, I mean DataBinding the SelectedValue to either a property or a DataTable (sorry this will be in C#, you can use one of the converters to convert it).
// Binding to a property
private int m_Mine;
public int Mine
{
  get {return m_Mine;}
  set {this.m_Mine = value;}
}

this.MyCombo.DataBindings.Add("SelectedValue", this, "Mine");
// Binding to a DataTable
this.MyCombo.DataBindings.Add("SelectedValue", MyDataTable, "MyColumn");
~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform