Hello,
I am using LINQ to SQL as dataSource for my xamDataGrid.
I use this code:
JULeSDataDataContext ds = new JULeSDataDataContext();
var c = (from view in ds.GetTable<view_successindicator>() where view.jobactivity=="debug" select view).ToList();
App.dt = LINQToDataTable(c);
xamDataGrid1.DataSource = App.dt.DefaultView;
but when i change my datatable . for example write this code:
c = (from view in ds.GetTable<view_successindicator>() select view).ToList();
my XamDataGrid is not changed. How do i update my XamDataGrid when my dataSource (SQL table or DataTable) are changed?
I'm new to WFP and Infragistics, I wonder if there is a way to do the same by using DataBinding.
Regards,
yes. thanks
Did setting the DataSource resolve your issue?
Valerie
You need to set the grid to point to the new instance of table, therefore after changing the datatable reference to the new table reset the datasource of the grid to point to the new table also: