I have a GridView in the editItemTemplate of a datalist. I am trying to dynamically assign the datasource of the gridview to a datatable. Though the datatable has number of rows, the same are not displayed in the gridview. I am attempting this in the DataList. ItemDataBound event. I confirm the itemtype is EditItem prior assigning the datasource.
I also tried to set the datasourceid property to a sqldatasource in the page in the markup. even that does not display the data in the grid.
If i take the gridview out from the datalist, all works well.
All other databound items in the edititem template (ddl, etc) work fine.
any help is appreciated