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

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -