popualte a tree view from DataTablehttp://forums.asp.net/t/1800615.aspx/1?popualte+a+tree+view+from+DataTableTue, 08 May 2012 11:51:29 -040018006154967627http://forums.asp.net/p/1800615/4967627.aspx/1?popualte+a+tree+view+from+DataTablepopualte a tree view from DataTable <p>Hi,</p> <p>i have a map, when the user select a continent, the continent's information will be stored in a table.</p> <p>the table name will be as same as the continent name.</p> <p>and when the user select more than one continent, every continent's information will be stored in different table.</p> <p>i want to make a TreeView with a node for each table, and when the user click on the node, the information will be populate in a gridview.</p> 2012-05-06T12:14:43-04:004970802http://forums.asp.net/p/1800615/4970802.aspx/1?Re+popualte+a+tree+view+from+DataTableRe: popualte a tree view from DataTable <p>TreeView control has a <a href="http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treeview.selectednodechanged.aspx"> SelectedNodeChanged</a> event. <span class="sent_en"><span class="123-1-1" title="">You</span> <span class="123-2-1" title="">can</span>&nbsp;save <span class="123-3-1" title=""> the</span> <span class="123-5-1" title="">table</span> <span class="123-6-1" title=""> name</span> <span class="123-7-1" title="">as</span> <span class="123-9-1" title=""> the</span> V<span class="123-10-1" title="">alue or Text</span>&nbsp;for <span class="123-8-1" title=""> each</span> <span class="123-11-1" title="">node, and i<span class="sent_en"><span class="118-1-1" title="">n</span> <span class="118-3-1" title="">the</span> <span class="118-5-1" title=""> event</span> <span class="118-6-1" title="">handler</span> <span class="118-7-1" title=""> gets</span> <span class="118-4-1" title="">the</span> <span class="118-2-1" title=""> value</span> <span class="118-8-1" title="">as</span> the selected table(a <span class="118-9-1" title=""> query</span> <span class="118-10-1" title="">parameter), then save the message or display information that you want to.</span></span></span></span>&nbsp;</p> <p>If I have misunderstood your concerns, don't hesitate to let me know.</p> 2012-05-08T11:51:29-04:00