Click here to Skip to main content
15,896,606 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Exception Handling Pin
Mark Churchill1-Feb-08 2:50
Mark Churchill1-Feb-08 2:50 
GeneralRe: Exception Handling Pin
Scott Dorman2-Feb-08 3:41
professionalScott Dorman2-Feb-08 3:41 
QuestionNavigating to previous page. Pin
Soonal31-Jan-08 21:28
Soonal31-Jan-08 21:28 
QuestionHow to hide the features of datagridview ?? Pin
VB 8.031-Jan-08 20:17
VB 8.031-Jan-08 20:17 
AnswerRe: How to hide the features of datagridview ?? Pin
Scubapro31-Jan-08 21:37
Scubapro31-Jan-08 21:37 
Generalneed to define a page range of richtextbox Pin
eyes200731-Jan-08 19:42
eyes200731-Jan-08 19:42 
GeneralDefault application for certain files. Pin
divyesh143231-Jan-08 18:42
divyesh143231-Jan-08 18:42 
Generalselecting a child node in a treeview after navigating to another page. Pin
uglyeyes31-Jan-08 16:03
uglyeyes31-Jan-08 16:03 
Hi!

I am populating a treeview on fly from DB on pageload. the treeview looks like

Motor
|
|-Holden
| |
| |-Astra
|
|-Subaru

the treeview is dynamic. I want to maintain the selected node when i navigate away from one page to another. If i select "Astra" in page 'A' and do postback it maintains the selected state using session("selected") = tv.selectednode.valuepath

but, if navigate to page 'B' in page load in my below line
If Not Session("selected") Is Nothing then
debug.writeline(Session("selected")) -->prints 118/115
propertytn = Me.tvProperty.FindNode(Session("selected")) --->nothing
propertytn.selected = true

i get null reference when i try to find that node and select it.

I spend few days trying to figure out, posted everywhere but no one is giving me satisfactory reply
somewhere i read i should expand parent first before expanding child. but again how would i expand all the parents if the selected node is in 6th level in a treeview.

please help.
GeneralRe: selecting a child node in a treeview after navigating to another page. Pin
Mycroft Holmes31-Jan-08 16:18
professionalMycroft Holmes31-Jan-08 16:18 
GeneralRe: selecting a child node in a treeview after navigating to another page. Pin
uglyeyes31-Jan-08 18:00
uglyeyes31-Jan-08 18:00 
GeneralRe: selecting a child node in a treeview after navigating to another page. Pin
uglyeyes31-Jan-08 18:42
uglyeyes31-Jan-08 18:42 
GeneralRetrieving a column from a data Row Pin
AAGTHosting31-Jan-08 12:09
AAGTHosting31-Jan-08 12:09 
GeneralRe: Retrieving a column from a data Row Pin
Mycroft Holmes31-Jan-08 16:35
professionalMycroft Holmes31-Jan-08 16:35 
GeneralRowNotInTableException - VB.NET 2.0 Pin
Marcus J. Smith31-Jan-08 6:45
professionalMarcus J. Smith31-Jan-08 6:45 
GeneralRe: RowNotInTableException - VB.NET 2.0 Pin
pmarfleet31-Jan-08 9:20
pmarfleet31-Jan-08 9:20 
Question[Message Deleted] Pin
Jeminwins31-Jan-08 3:16
professionalJeminwins31-Jan-08 3:16 
GeneralRe: Combobox in Datagrid (windows) Pin
Justin Perez31-Jan-08 3:57
Justin Perez31-Jan-08 3:57 
GeneralRe: Combobox in Datagrid (windows) Pin
Jeminwins31-Jan-08 18:01
professionalJeminwins31-Jan-08 18:01 
GeneralRe: Combobox in Datagrid (windows) PinPopular
Justin Perez1-Feb-08 3:50
Justin Perez1-Feb-08 3:50 
GeneralRe: Combobox in Datagrid (windows) Pin
Mycroft Holmes1-Feb-08 17:18
professionalMycroft Holmes1-Feb-08 17:18 
QuestionVB.Net 2005 And Databinding Pin
ejaz_pk31-Jan-08 1:48
ejaz_pk31-Jan-08 1:48 
GeneralRe: VB.Net 2005 And Databinding Pin
pmarfleet31-Jan-08 8:51
pmarfleet31-Jan-08 8:51 
GeneralRe: VB.Net 2005 And Databinding Pin
Steven J Jowett31-Jan-08 8:52
Steven J Jowett31-Jan-08 8:52 
QuestionStack Overflow when adding controls across threads. Pin
Chinners30-Jan-08 23:25
Chinners30-Jan-08 23:25 
GeneralRe: Stack Overflow when adding controls across threads. Pin
m@u30-Jan-08 23:48
m@u30-Jan-08 23:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.