Presenter Data Binding

6 replies. Last post: March 19, 2010 6:31 AM by Glenn Layaar
Tags :
  • (None)
  • New Discussion
  • New Question
  • New Product Feedback

Are there any example of how to use Silverlight enabled WCF Service with an ADO.Net Entity Data Model to connect to the Grid Presenter?  Also can the Grid Presenter be used in a unbound mode similar to the way that a standard DataGrid similar to below?

 

dg.Columns.Clear();

DataGridTextColumn textColumn0 = new DataGridTextColumn(); textColumn0.Header = "Project"; textColumn0.Binding = new Binding("ProjectName"); DataGridTextColumn textColumn1 = new DataGridTextColumn(); textColumn1.Header = "Organization"; textColumn1.Binding = new Binding("Organization"); DataGridTextColumn textColumn2 = new DataGridTextColumn(); textColumn2.Header = "Work"; textColumn2.Binding = new Binding("ProjectWork"); DataGridTextColumn textColumn3 = new DataGridTextColumn(); textColumn3.Header = "Remaining Work"; textColumn3.Binding = new Binding("ProjectRemainingWork");

dg.Columns.Add(textColumn0);

dg.Columns.Add(textColumn1);

dg.Columns.Add(textColumn2);

dg.Columns.Add(textColumn3);

dg.AutoGenerateColumns =
false;

dg.ItemsSource = e.Result;

 

 

All times are GMT -5. The time now is 7:22 PM.
Previous Next