Click here to Skip to main content
12,623,511 members (29,250 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB Gridview VB.NET
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 8-Aug-12 19:15pm
GeoNav756
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.161128.1 | Last Updated 9 Aug 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100