I have a datatable with 182K rows and 167 columns. I built 2 simple projects:
WPF
DataTable dt = GetTable();
dgMain.DataSource = dt.AsEnumerable();
<Grid> <igDP:XamDataGrid Name="dgMain"/> </Grid>
WinForm
The WinForm loads fine as does the WPF form. However, the WPF gets a stuck clock and ultimately goes to an out of memory exception. The WinForm works as soon as it is loaded. both load about the same time.
This happens if BindToSampleData is set True and the DataSource is set in code behind. Hence, remove the sample data binding and the problem is corrected.
I have been doing more testing and that doesn't appear to be it. I sometimes see a stuck clock, other times, i do not. In WInForm, it runs fine every time. I am happy to send the solution or to rty and do some experimentation to find out what is happening.
Constructor:
var dc = new DataClasses1DataContext(); var recs = (from p in dc.GetTable<SAS_STATUS>() select p ) ; dgMain.DataSource = recs;