sir i have a small requirement i hope u can help me.i have 2 tables in my DB
Employee and Company
employee tb has emp id,emp name,company id
company tb has comp id and compname.........compid in emptable is foreignkey
iam using WCF ria services ADO.net framework in my project with silverlight.
now how do i populate a form from database using domain context which has
a text box and a combobox
txtempname and cmbemployeename
i want employee name and companyname of employee to be displayed in the textbox and combobox when an employee id is givn in search box
i need also the xaml code on how the combobox will bind so that the employees company name can be changed in the UI screen....
Iam AjayPosted Apr 19, 2013, 11:03 AM
also the employees company should be editable.......incase the employees company gets changed...........here is the code what i have written till now ...
Riddhi ValechaPosted Apr 19, 2013, 4:10 AM
For databinding in Silverlight, there is ItemSource Property.
Assign it in the following way-
Datatable table;
datagrid1.Itemsource = table;
Combobox1.Itemsource=table;
And in XAML Page, set AutogenerateColumns=true; ForeGroundColor="Black"
-----------------
If you have made the silverlight project, do share. It will be easy to make changes there.
---