Jan 19, 2009, 1:07 PM
Using Coolite GridPanel without Coolite Store
Is it possible to use Coolite Data controls without associating a Store with them??
In my case, I have data in a System.Data.DataTable. Is it possible to set this DataTable as GridPanel's DataSource, and then DataBind the GridPanel??
If no, is it possible to manually add columns & rows from the DataTable to the GridPanel?
If even this is not possible, then how could I make a Store pick up data from a DataTable? The number of columns in the DataTable is dynamic, and hence Store's Fields can not be assigned in markup. They have to be added dynamically in code-behind. Some sample code would be highly appreciated.
In my case, I have data in a System.Data.DataTable. Is it possible to set this DataTable as GridPanel's DataSource, and then DataBind the GridPanel??
If no, is it possible to manually add columns & rows from the DataTable to the GridPanel?
If even this is not possible, then how could I make a Store pick up data from a DataTable? The number of columns in the DataTable is dynamic, and hence Store's Fields can not be assigned in markup. They have to be added dynamically in code-behind. Some sample code would be highly appreciated.