This question is locked. New answers and comments are not allowed.
Hello,
I'm using RIA services to fill my RadDataGrid and I have a huge quantity of data in may database;
I tried this code, it shoes me data when the table contains 300 rows but with an other one 8000 rows it doesn't work !! ;
I'm using RIA services to fill my RadDataGrid and I have a huge quantity of data in may database;
I tried this code, it shoes me data when the table contains 300 rows but with an other one 8000 rows it doesn't work !! ;
public partial class VTable : UserControl { public MyDataContext _webDataContext = new MyDataContext (); public VTable() { InitializeComponent(); List<MyObjectFromTable>DataList = new List<MyObjectFromTable>(); _webDataContext.Load<MyObjectFromTable>(_webDataContext.GetTMyObjectFromTableQuery()).Completed += (sender, args) => { DataList = ((LoadOperation<MyObjectFromTable>)sender).Entities.ToList(); RadGridView1.Columns.Add(new GridViewDataColumn() { Header = string.Format("Column {0}", 0), DataMemberBinding = new Binding("Column1"), }); RadGridView1.Columns.Add(new GridViewDataColumn() { Header = string.Format("Column {0}", 1), DataMemberBinding = new Binding("Column2"), }); DataContext = new ObservableCollection<MyObjectFromTable>(from i in DataList select i); }; } }