subsonic3 - SubSonic 3. Get results as DataTable -


How can I get it All () method results in the form of datatale?

Currently it gives the IQueryable, WinForms can not be used as a data source for DataGridView control.

dataGridView1.DataSource = Product.All (); // is not working

You can tie a list in a datagrid view control so that only Use the ToList () method on the IQueryable instance

  MyDataGridView.DataSource = MyObject.All (). ToList ();  

Comments

Popular posts from this blog

Indexing in SQL -

objective c - iPhone and it's wireless area -

multithreading - Do lock objects in Java need to be static? -