Hi
i want to display state name in combobox and theri values should be id's and these value i get on second page can any one help me how can i do this in silverlight.................?
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Hemant KumarRank #1,202 · 1.5K reputationPosted Oct 27, 2011, 6:47 AM EDT
Hemant KumarRank #1,202 · 1.5K reputationPosted Oct 26, 2011, 9:39 PM EDT
private void buildcboAuthors()
{
OleDbCommand cmd = new OleDbCommand("SELECT * FROM tblAuthors",conn);
this.conn .Open ();
OleDbDataReader rsAutors = cmd.ExecuteReader();
ArrayList Authors = new ArrayList();
while(rsAutors.Read())
{
Authors.Add (new AddValue
(rsAutors.GetString(1),rsAutors.GetInt32 (0)));
}
rsAutors.Close();
this.conn.Close();
this.cboAuthors.DataSource = Authors;
this.cboAuthors .DisplayMember ="Display";
this.cboAuthors.ValueMember = "Value";
AuthorsHaveBeenAdded=true;
}
Smart LuckyRank #2,625 · 531 reputationPosted Oct 27, 2011, 3:47 AM EDT
I want just Static .............not form database..
Suthish NairRank #92 · 22.8K reputationPosted Oct 27, 2011, 10:14 AM EDT