I am new in silverlight and i want to bind data from Entity Data source in combox like WindosForm for exmple
private void Form1_Load(object sender, EventArgs e)
{
comboBox1.DisplayMember = "CategoryName";
comboBox1.ValueMember = "CategoryID";
comboBox1.DataSource = NorthwindEntities.Categories;
}
Thank you all.
Here you go
comboBox1.ItemSource= NorthwindEntities.Categories;
and you need to post XAML for more help.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.