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
1865
Binding DataTable to xamDataGrid and Clear?
posted

I am binding a DataTable from a class to a xamDataGrid in code behind.

I am using something like: dataGrid.DataSource = MyClass.Instance.MyDataTable.DataView     // singleton class

Any issues if, in my class:

1.) When I first bind (at app startup), the datatable is empty but new rows get added later on?

2.) I have MyDataTable.Clear() and then I re-populate the data.

I both the above cases, sometimes, my dataGrid does not update with new data. Also, this only happens when I run the exe directly but not in debug mode.

I am only looking for any know issues - it is possible that my problem is somewhere else.

Thanks.