Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
570
update xamdatagrid
posted

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();

            App.dt = LINQToDataTable(c);

 

my XamDataGrid is not changed. How do i update my XamDataGrid when my dataSource (SQL table or DataTable) are changed?