c# - Web Control TreeView select a Node programmatically -


i use asp.net 4 , c#. have treeview , select existing node programmtically.

selectnode() method read 

http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treeview.selectednode.aspx

so not know how it. please reply treeview web control not win app.

my code:

protected void uxtreeview_databound(object sender, eventargs e) {     treeview mytreeview = (treeview)uxmanageslotsdisplayer.findcontrol("uxtreeview");     mytreeview.nodes[2].selected = true; } 

you can try setting selected property of particular treenode.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -