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
Datagrid in UserControl not updating
posted

I have a UserControl that has 1 xamDataGrid and 2 other UserControls in it. The 2 other UserControls just contain single xamDataGrids.

In each UserControls, I use something like this...in code behind:

DataTable dt = MyClass.Instance.Data();

xgrdSummary.DataSource = dt.DefaultView;

The 3rd grid (and sometimes 2nd grid) does not show any data on startup. Even when I step through the code, "dt" has valid data in it but the datagrid does not show the underlying data. Also, in MyClass, an event updates the data() property every few seconds but the data in 3rd grid is not refreshed automatically.

What am I doing wrong?