EnropJouro
New Member
I need a bunch of GridViews to display on my page. I have a List of Lists of Section Objects called dataList, and each List in dataList should be bound to one of the GridViews.I have this\[code\]List<List<Section>> dataList;foreach (List<Section> sectionList in dataList){ GridView gv = new GridView(); gv.DataSource = sectionList gv.DataBind();}\[/code\]and my markup:\[code\] <asp:GridView runat="server" ID="gv" AutoGenerateColumns="true"/>\[/code\]but when I load the page I can't see anything. How do I display all of the GridViews I created? Does the foreach loop I have successfully bind each GridView to the Lists of dataList? Thanks