1.aa
2.bb
3.cc
before i selecting any value of above three (aa) must be displayed in combo box..
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
om prakashPosted Sep 30, 2013, 1:11 AM
om prakashPosted Sep 27, 2013, 6:51 AM
Jignesh TrivediPosted Sep 27, 2013, 6:47 AM
hi,
Please refer
http://www.codeproject.com/Articles/157282/Binding-to-a-ComboBox-in-Silverlight-A-Gotcha
http://tonychampion.net/blog/index.php/2011/02/binding-to-a-combobox-in-silverlight-a-gotcha/
hope this will help you.
om prakashPosted Sep 27, 2013, 4:40 AM
Enum code:
Xaml Code:
i want to bind normal in combo box defautly when the page is loaded can u help me..
Sanjeeb LenkaPosted Sep 27, 2013, 1:36 AM
try like this
public partial class MainPage : UserControl
{
public MainPage()
{
InitializeComponent();
combobind();
comboBox1.SelectedIndex = 0;
}
public void combobind()
{
comboBox1.Items.Add("aa");
comboBox1.Items.Add("bb");
comboBox1.Items.Add("cc");
}
}
}
om prakashPosted Sep 27, 2013, 1:24 AM
Jeetendra GundPosted Sep 27, 2013, 1:01 AM
which technology u r using?
Jignesh TrivediPosted Sep 27, 2013, 12:43 AM
Are you using winform application. web base application or MVC?
in all application has differnent way to acheive...