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

Visual Basic

 
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 
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 
Hi!

thanks for reply. I think the node becomes only available when I drilldown (by the look of my code). i.e it has treenodes populateondemand. could you possibly point out what i am doing wrong to acheive my goal. am i populating the treeview incorrectly? please help

brief code as below

sub page_load
if not ispostback then

PopulatePropertyLocation()
end if

If Not Session("selected") Is Nothing then
debug.writeline(Session("selected")) -->prints 118/115
propertytn = Me.tvProperty.FindNode(Session("selected")) --->nothing
propertytn.selected = true

end sub

----------------------------
Private Sub PopulatePropertyLocation()
Dim myDal As New clsDAL


Dim dt As DataTable
Try
dt = myDal.getPropertyLocation(userId, tLocId)

PopulatePropertyLocationNodes(dt, tvProperty.Nodes)

Catch ee As Exception
Throw ee
myDal.UpdateErrorLog(ee.Message, ee.TargetSite.Name.ToString())
End Try
End Sub

Private Sub PopulatePropertyLocationNodes(ByVal dt As DataTable, ByVal nodes As TreeNodeCollection)
For Each dr As DataRow In dt.Rows
Dim tn As New TreeNode()
tn.Text = dr("LName").ToString()
tn.Value = dr("LId").ToString()
nodes.Add(tn)

'If node has child nodes, then enable on-demand populating
tn.PopulateOnDemand = (CInt(dr("LocationCount")) > 0)
Next
End Sub

many thanks in forward.
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 
GeneralRe: Stack Overflow when adding controls across threads. Pin
Chinners31-Jan-08 0:16
Chinners31-Jan-08 0:16 
GeneralRe: Stack Overflow when adding controls across threads. Pin
m@u31-Jan-08 0:22
m@u31-Jan-08 0:22 

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.