Click here to Skip to main content
15,867,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
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
Posted
Comments
Kenneth Haugland 9-Aug-12 0:46am    
Lets see your code. This should be quite trivial.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900