Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Boxes.
Message
From
09/12/2003 17:27:48
 
 
To
09/12/2003 17:14:38
Jim Rieck
Quicken Loans/Rock Financial/Title Sourc
Livonia, Michigan, United States
General information
Forum:
ASP.NET
Category:
Forms
Title:
Miscellaneous
Thread ID:
00857406
Message ID:
00857452
Views:
33
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform