473,748 Members | 9,931 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Treeview populate from database

Hello!

I have a database with some customers. Each one of them has 3 other customers under him etc. (something like an MLM system). Now, I want to create a treeview with this. Eg.

C1
C11
C111
C1111
C1112
C1113
C112
C1121
C113
C12
C13
First of all, each of the customers may have max 3 people under him. So my thoughts were to set as the parent node each customer and see if he has others under him and then add them to his tree. My problem is how to set as parent a previously added node? Itried to do this with k=k+1 but it doesn't work. To be more specific let me give u some code i wrote. Any help would be appreciated!
genSQL = "SELECT * FROM Customers order by Upline,Line"
genrs.Open(genS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic, ADODB.LockTypeE num.adLockOptim istic)

Dim cnode As TreeNode
genrs.MoveFirst ()

TV1.Nodes.Add(g enrs.Fields!Fir stName.Value & " " & genrs.Fields!Fi rstName.Value)

k = 0

Do Until genrs.EOF

vlax = genrs.Fields!Up line.Value & genrs.Fields!Li ne.Value

geoSQL = "SELECT * FROM Customers WHERE Upline=" & vlax & " and Referrer<>0 order by Upline,Line"

geors.Open(geoS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic, ADODB.LockTypeE num.adLockOptim istic)

cnode = TV1.Nodes.Item( k)

For i = 1 To 3

If Not geors.EOF Then cnode.Nodes.Add (geors.Fields!F irstName.Value & " " & geors.Fields!Fi rstName.Value)
geors.MoveNext( )

Next

k = k + 1

geors.Close()
genrs.MoveNext( )

Loop

Nov 21 '05 #1
9 2098
Marina,

A treeview is exactly as a chrismass tree.

You can put (add) someting to a node.

The same as in a christmass tree you cannot say that a bell is now a node.

However you can take it out again in a treeview and add it again as a node.
I think that that will be your solution to go.

Anoterh question, there is a regular too these newsgoups who uses the name
Marina.

So it can be confusing when there are two Marina's, will you maybe be so
kind to set something behind your name next time by instance "L"

Thanks in advance

I hope this answer by the way helps so far?

Cor

"Marina" ma*********@att ractionnet.com
Hello!

I have a database with some customers. Each one of them has 3 other
customers under him etc. (something like an MLM system). Now, I want to
create a treeview with this. Eg.

C1
C11
C111
C1111
C1112
C1113
C112
C1121
C113
C12
C13
First of all, each of the customers may have max 3 people under him. So my
thoughts were to set as the parent node each customer and see if he has
others under him and then add them to his tree. My problem is how to set as
parent a previously added node? Itried to do this with k=k+1 but it doesn't
work. To be more specific let me give u some code i wrote. Any help would be
appreciated!
genSQL = "SELECT * FROM Customers order by Upline,Line"
genrs.Open(genS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic,
ADODB.LockTypeE num.adLockOptim istic)
Dim cnode As TreeNode
genrs.MoveFirst ()
TV1.Nodes.Add(g enrs.Fields!Fir stName.Value & " " &
genrs.Fields!Fi rstName.Value)
k = 0
Do Until genrs.EOF
vlax = genrs.Fields!Up line.Value & genrs.Fields!Li ne.Value
geoSQL = "SELECT * FROM Customers WHERE Upline=" & vlax & " and Referrer<>0
order by Upline,Line"
geors.Open(geoS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic,
ADODB.LockTypeE num.adLockOptim istic)
cnode = TV1.Nodes.Item( k)
For i = 1 To 3
If Not geors.EOF Then cnode.Nodes.Add (geors.Fields!F irstName.Value & " " &
geors.Fields!Fi rstName.Value)
geors.MoveNext( )
Next
k = k + 1
geors.Close()
genrs.MoveNext( )
Loop
Nov 21 '05 #2
Thanks for your info. Actually this thing is going to be a christmas gift
for one of my customers.

What I'm trying to do is to set the new added node as parent node. But let's
make it simpler. How one can populate a treeview with many different levels?

PS. Nemertes is better i think!
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:eO******** ******@TK2MSFTN GP11.phx.gbl...
Marina,

A treeview is exactly as a chrismass tree.

You can put (add) someting to a node.

The same as in a christmass tree you cannot say that a bell is now a node.

However you can take it out again in a treeview and add it again as a node. I think that that will be your solution to go.

Anoterh question, there is a regular too these newsgoups who uses the name
Marina.

So it can be confusing when there are two Marina's, will you maybe be so
kind to set something behind your name next time by instance "L"

Thanks in advance

I hope this answer by the way helps so far?

Cor

"Marina" ma*********@att ractionnet.com
Hello!

I have a database with some customers. Each one of them has 3 other
customers under him etc. (something like an MLM system). Now, I want to
create a treeview with this. Eg.

C1
C11
C111
C1111
C1112
C1113
C112
C1121
C113
C12
C13
First of all, each of the customers may have max 3 people under him. So my
thoughts were to set as the parent node each customer and see if he has
others under him and then add them to his tree. My problem is how to set as parent a previously added node? Itried to do this with k=k+1 but it doesn't work. To be more specific let me give u some code i wrote. Any help would be appreciated!
genSQL = "SELECT * FROM Customers order by Upline,Line"
genrs.Open(genS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic,
ADODB.LockTypeE num.adLockOptim istic)
Dim cnode As TreeNode
genrs.MoveFirst ()
TV1.Nodes.Add(g enrs.Fields!Fir stName.Value & " " &
genrs.Fields!Fi rstName.Value)
k = 0
Do Until genrs.EOF
vlax = genrs.Fields!Up line.Value & genrs.Fields!Li ne.Value
geoSQL = "SELECT * FROM Customers WHERE Upline=" & vlax & " and Referrer<>0 order by Upline,Line"
geors.Open(geoS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic,
ADODB.LockTypeE num.adLockOptim istic)
cnode = TV1.Nodes.Item( k)
For i = 1 To 3
If Not geors.EOF Then cnode.Nodes.Add (geors.Fields!F irstName.Value & " " &
geors.Fields!Fi rstName.Value)
geors.MoveNext( )
Next
k = k + 1
geors.Close()
genrs.MoveNext( )
Loop

Nov 21 '05 #3
Marina,

Nemertes I never saw what does it mean ? :-)

Does this sample I once made help?

\\\Needs only a treeview on a form
Private Sub Form1_Load(ByVa l sender As Object, _
ByVal e As System.EventArg s) Handles MyBase.Load
Dim l As Integer() = {0, 0, 1, 0, 1, 5}
Dim t As New TreeNode("Root" )
TreeView1.Nodes .Add(t)
For i As Integer = 1 To 5
Dim tn As New TreeNode
tn = t.Nodes.Add("Ro ot\Node" & i.ToString & "\")
Dim sn As New TreeNode
For j As Integer = 1 To l(i)
sn = tn.Nodes.Add("R oot\Node" & i.ToString & "\SubNode\" & _
i.ToString & j.ToString)
Dim sn2 As New TreeNode
For h As Integer = 1 To l(6 - j)
sn2 = sn.Nodes.Add("R oot\Node" & i.ToString &
"\SubNode\" & _
i.ToString & j.ToString & "\" _
& "SubNode" & i.ToString & j.ToString & h.ToString)
Next
Next
Next
TreeView1.Expan dAll()
End Sub
///
I hope this helps?

Cor
"Nemertes" <ne******@hotma il.com>
Thanks for your info. Actually this thing is going to be a christmas gift
for one of my customers.

What I'm trying to do is to set the new added node as parent node. But
let's
make it simpler. How one can populate a treeview with many different
levels?

PS. Nemertes is better i think!
"Cor Ligthert" <no************ @planet.nl> wrote in message
news:eO******** ******@TK2MSFTN GP11.phx.gbl...
Marina,

A treeview is exactly as a chrismass tree.

You can put (add) someting to a node.

The same as in a christmass tree you cannot say that a bell is now a
node.

However you can take it out again in a treeview and add it again as a

node.
I think that that will be your solution to go.

Anoterh question, there is a regular too these newsgoups who uses the
name
Marina.

So it can be confusing when there are two Marina's, will you maybe be so
kind to set something behind your name next time by instance "L"

Thanks in advance

I hope this answer by the way helps so far?

Cor

"Marina" ma*********@att ractionnet.com
Hello!

I have a database with some customers. Each one of them has 3 other
customers under him etc. (something like an MLM system). Now, I want to
create a treeview with this. Eg.

C1
C11
C111
C1111
C1112
C1113
C112
C1121
C113
C12
C13
First of all, each of the customers may have max 3 people under him. So
my
thoughts were to set as the parent node each customer and see if he has
others under him and then add them to his tree. My problem is how to set

as
parent a previously added node? Itried to do this with k=k+1 but it

doesn't
work. To be more specific let me give u some code i wrote. Any help would

be
appreciated!
genSQL = "SELECT * FROM Customers order by Upline,Line"
genrs.Open(genS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic,
ADODB.LockTypeE num.adLockOptim istic)
Dim cnode As TreeNode
genrs.MoveFirst ()
TV1.Nodes.Add(g enrs.Fields!Fir stName.Value & " " &
genrs.Fields!Fi rstName.Value)
k = 0
Do Until genrs.EOF
vlax = genrs.Fields!Up line.Value & genrs.Fields!Li ne.Value
geoSQL = "SELECT * FROM Customers WHERE Upline=" & vlax & " and

Referrer<>0
order by Upline,Line"
geors.Open(geoS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic,
ADODB.LockTypeE num.adLockOptim istic)
cnode = TV1.Nodes.Item( k)
For i = 1 To 3
If Not geors.EOF Then cnode.Nodes.Add (geors.Fields!F irstName.Value & " "
&
geors.Fields!Fi rstName.Value)
geors.MoveNext( )
Next
k = k + 1
geors.Close()
genrs.MoveNext( )
Loop


Nov 21 '05 #4
Hi,

Maybe this will help.
http://support.microsoft.com/default...;en-us;Q320755
Ken
-------------------
"Marina" <ma*********@at tractionnet.com > wrote in message
news:Cn******** **********@twis ter2.libero.it. ..
Hello!

I have a database with some customers. Each one of them has 3 other
customers under him etc. (something like an MLM system). Now, I want to
create a treeview with this. Eg.

C1
C11
C111
C1111
C1112
C1113
C112
C1121
C113
C12
C13
First of all, each of the customers may have max 3 people under him. So my
thoughts were to set as the parent node each customer and see if he has
others under him and then add them to his tree. My problem is how to set as
parent a previously added node? Itried to do this with k=k+1 but it doesn't
work. To be more specific let me give u some code i wrote. Any help would be
appreciated!
genSQL = "SELECT * FROM Customers order by Upline,Line"
genrs.Open(genS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic,
ADODB.LockTypeE num.adLockOptim istic)
Dim cnode As TreeNode
genrs.MoveFirst ()
TV1.Nodes.Add(g enrs.Fields!Fir stName.Value & " " &
genrs.Fields!Fi rstName.Value)
k = 0
Do Until genrs.EOF
vlax = genrs.Fields!Up line.Value & genrs.Fields!Li ne.Value
geoSQL = "SELECT * FROM Customers WHERE Upline=" & vlax & " and Referrer<>0
order by Upline,Line"
geors.Open(geoS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic,
ADODB.LockTypeE num.adLockOptim istic)
cnode = TV1.Nodes.Item( k)
For i = 1 To 3
If Not geors.EOF Then cnode.Nodes.Add (geors.Fields!F irstName.Value & " " &
geors.Fields!Fi rstName.Value)
geors.MoveNext( )
Next
k = k + 1
geors.Close()
genrs.MoveNext( )
Loop
Nov 21 '05 #5
Ken,

Used is AdoDB, it does not matter, however it was the reason I was avoiding
this kind of sample.

:-)

(The OP knows now that there is a difference therefore more the message)

Cor


Maybe this will help.
http://support.microsoft.com/default...;en-us;Q320755
Ken
-------------------
"Marina" <ma*********@at tractionnet.com > wrote in message
news:Cn******** **********@twis ter2.libero.it. ..
Hello!

I have a database with some customers. Each one of them has 3 other
customers under him etc. (something like an MLM system). Now, I want to
create a treeview with this. Eg.

C1
C11
C111
C1111
C1112
C1113
C112
C1121
C113
C12
C13
First of all, each of the customers may have max 3 people under him. So my
thoughts were to set as the parent node each customer and see if he has
others under him and then add them to his tree. My problem is how to set
as
parent a previously added node? Itried to do this with k=k+1 but it
doesn't
work. To be more specific let me give u some code i wrote. Any help would
be
appreciated!
genSQL = "SELECT * FROM Customers order by Upline,Line"
genrs.Open(genS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic,
ADODB.LockTypeE num.adLockOptim istic)
Dim cnode As TreeNode
genrs.MoveFirst ()
TV1.Nodes.Add(g enrs.Fields!Fir stName.Value & " " &
genrs.Fields!Fi rstName.Value)
k = 0
Do Until genrs.EOF
vlax = genrs.Fields!Up line.Value & genrs.Fields!Li ne.Value
geoSQL = "SELECT * FROM Customers WHERE Upline=" & vlax & " and
Referrer<>0
order by Upline,Line"
geors.Open(geoS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic,
ADODB.LockTypeE num.adLockOptim istic)
cnode = TV1.Nodes.Item( k)
For i = 1 To 3
If Not geors.EOF Then cnode.Nodes.Add (geors.Fields!F irstName.Value & " " &
geors.Fields!Fi rstName.Value)
geors.MoveNext( )
Next
k = k + 1
geors.Close()
genrs.MoveNext( )
Loop

Nov 21 '05 #6
Hi,

Maybe this will help.
http://support.microsoft.com/default...;en-us;Q320755
Ken
-------------------
"Marina" <ma*********@at tractionnet.com > wrote in message
news:Cn******** **********@twis ter2.libero.it. ..
Hello!

I have a database with some customers. Each one of them has 3 other
customers under him etc. (something like an MLM system). Now, I want to
create a treeview with this. Eg.

C1
C11
C111
C1111
C1112
C1113
C112
C1121
C113
C12
C13
First of all, each of the customers may have max 3 people under him. So my
thoughts were to set as the parent node each customer and see if he has
others under him and then add them to his tree. My problem is how to set as
parent a previously added node? Itried to do this with k=k+1 but it doesn't
work. To be more specific let me give u some code i wrote. Any help would be
appreciated!
genSQL = "SELECT * FROM Customers order by Upline,Line"
genrs.Open(genS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic,
ADODB.LockTypeE num.adLockOptim istic)
Dim cnode As TreeNode
genrs.MoveFirst ()
TV1.Nodes.Add(g enrs.Fields!Fir stName.Value & " " &
genrs.Fields!Fi rstName.Value)
k = 0
Do Until genrs.EOF
vlax = genrs.Fields!Up line.Value & genrs.Fields!Li ne.Value
geoSQL = "SELECT * FROM Customers WHERE Upline=" & vlax & " and Referrer<>0
order by Upline,Line"
geors.Open(geoS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic,
ADODB.LockTypeE num.adLockOptim istic)
cnode = TV1.Nodes.Item( k)
For i = 1 To 3
If Not geors.EOF Then cnode.Nodes.Add (geors.Fields!F irstName.Value & " " &
geors.Fields!Fi rstName.Value)
geors.MoveNext( )
Next
k = k + 1
geors.Close()
genrs.MoveNext( )
Loop
Nov 21 '05 #7
Ken,

Used is AdoDB, it does not matter, however it was the reason I was avoiding
this kind of sample.

:-)

(The OP knows now that there is a difference therefore more the message)

Cor


Maybe this will help.
http://support.microsoft.com/default...;en-us;Q320755
Ken
-------------------
"Marina" <ma*********@at tractionnet.com > wrote in message
news:Cn******** **********@twis ter2.libero.it. ..
Hello!

I have a database with some customers. Each one of them has 3 other
customers under him etc. (something like an MLM system). Now, I want to
create a treeview with this. Eg.

C1
C11
C111
C1111
C1112
C1113
C112
C1121
C113
C12
C13
First of all, each of the customers may have max 3 people under him. So my
thoughts were to set as the parent node each customer and see if he has
others under him and then add them to his tree. My problem is how to set
as
parent a previously added node? Itried to do this with k=k+1 but it
doesn't
work. To be more specific let me give u some code i wrote. Any help would
be
appreciated!
genSQL = "SELECT * FROM Customers order by Upline,Line"
genrs.Open(genS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic,
ADODB.LockTypeE num.adLockOptim istic)
Dim cnode As TreeNode
genrs.MoveFirst ()
TV1.Nodes.Add(g enrs.Fields!Fir stName.Value & " " &
genrs.Fields!Fi rstName.Value)
k = 0
Do Until genrs.EOF
vlax = genrs.Fields!Up line.Value & genrs.Fields!Li ne.Value
geoSQL = "SELECT * FROM Customers WHERE Upline=" & vlax & " and
Referrer<>0
order by Upline,Line"
geors.Open(geoS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic,
ADODB.LockTypeE num.adLockOptim istic)
cnode = TV1.Nodes.Item( k)
For i = 1 To 3
If Not geors.EOF Then cnode.Nodes.Add (geors.Fields!F irstName.Value & " " &
geors.Fields!Fi rstName.Value)
geors.MoveNext( )
Next
k = k + 1
geors.Close()
genrs.MoveNext( )
Loop

Nov 21 '05 #8
Thanks for your answers. The thing I wrote and got only to Cor was :

Thanks a lot!

Even my problem is not solved, I got a perfect idea of how to add child
nodes. So the next thing is how to pre-determine the levels my tree will
have. I'll find a way don't worry!

Btw, Nemertes is a greek godess, daughter of the god of the sea Nireus,
considered to be the wissest of the sisters and unerritable. This is the
greek version of my latin name (Marina) :-)
-------------------------

Now, the topic Ken send me leads me also to the same path. That the is no way of make a completely dynamically tree. So I will only allow his to see the first 10 levels with 10 for... next or 10 for each . In the prog (i do the same thing with crystal reports) only the first person has the right to see more than 10 levels, but since this is not applicable, I would limit it to just 10. This is a gift after all!

Thanks a lot all of you!

Marina


"Marina" <ma*********@at tractionnet.com > wrote in message news:Cn******** **********@twis ter2.libero.it. ..
Hello!

I have a database with some customers. Each one of them has 3 other customers under him etc. (something like an MLM system). Now, I want to create a treeview with this. Eg.

C1
C11
C111
C1111
C1112
C1113
C112
C1121
C113
C12
C13
First of all, each of the customers may have max 3 people under him. So my thoughts were to set as the parent node each customer and see if he has others under him and then add them to his tree. My problem is how to set as parent a previously added node? Itried to do this with k=k+1 but it doesn't work. To be more specific let me give u some code i wrote. Any help would be appreciated!
genSQL = "SELECT * FROM Customers order by Upline,Line"
genrs.Open(genS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic, ADODB.LockTypeE num.adLockOptim istic)

Dim cnode As TreeNode
genrs.MoveFirst ()

TV1.Nodes.Add(g enrs.Fields!Fir stName.Value & " " & genrs.Fields!Fi rstName.Value)

k = 0

Do Until genrs.EOF

vlax = genrs.Fields!Up line.Value & genrs.Fields!Li ne.Value

geoSQL = "SELECT * FROM Customers WHERE Upline=" & vlax & " and Referrer<>0 order by Upline,Line"

geors.Open(geoS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic, ADODB.LockTypeE num.adLockOptim istic)

cnode = TV1.Nodes.Item( k)

For i = 1 To 3

If Not geors.EOF Then cnode.Nodes.Add (geors.Fields!F irstName.Value & " " & geors.Fields!Fi rstName.Value)
geors.MoveNext( )

Next

k = k + 1

geors.Close()
genrs.MoveNext( )

Loop

Nov 21 '05 #9
Thanks for your answers. The thing I wrote and got only to Cor was :

Thanks a lot!

Even my problem is not solved, I got a perfect idea of how to add child
nodes. So the next thing is how to pre-determine the levels my tree will
have. I'll find a way don't worry!

Btw, Nemertes is a greek godess, daughter of the god of the sea Nireus,
considered to be the wissest of the sisters and unerritable. This is the
greek version of my latin name (Marina) :-)
-------------------------

Now, the topic Ken send me leads me also to the same path. That the is no way of make a completely dynamically tree. So I will only allow his to see the first 10 levels with 10 for... next or 10 for each . In the prog (i do the same thing with crystal reports) only the first person has the right to see more than 10 levels, but since this is not applicable, I would limit it to just 10. This is a gift after all!

Thanks a lot all of you!

Marina


"Marina" <ma*********@at tractionnet.com > wrote in message news:Cn******** **********@twis ter2.libero.it. ..
Hello!

I have a database with some customers. Each one of them has 3 other customers under him etc. (something like an MLM system). Now, I want to create a treeview with this. Eg.

C1
C11
C111
C1111
C1112
C1113
C112
C1121
C113
C12
C13
First of all, each of the customers may have max 3 people under him. So my thoughts were to set as the parent node each customer and see if he has others under him and then add them to his tree. My problem is how to set as parent a previously added node? Itried to do this with k=k+1 but it doesn't work. To be more specific let me give u some code i wrote. Any help would be appreciated!
genSQL = "SELECT * FROM Customers order by Upline,Line"
genrs.Open(genS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic, ADODB.LockTypeE num.adLockOptim istic)

Dim cnode As TreeNode
genrs.MoveFirst ()

TV1.Nodes.Add(g enrs.Fields!Fir stName.Value & " " & genrs.Fields!Fi rstName.Value)

k = 0

Do Until genrs.EOF

vlax = genrs.Fields!Up line.Value & genrs.Fields!Li ne.Value

geoSQL = "SELECT * FROM Customers WHERE Upline=" & vlax & " and Referrer<>0 order by Upline,Line"

geors.Open(geoS QL, sindesi, ADODB.CursorTyp eEnum.adOpenDyn amic, ADODB.LockTypeE num.adLockOptim istic)

cnode = TV1.Nodes.Item( k)

For i = 1 To 3

If Not geors.EOF Then cnode.Nodes.Add (geors.Fields!F irstName.Value & " " & geors.Fields!Fi rstName.Value)
geors.MoveNext( )

Next

k = k + 1

geors.Close()
genrs.MoveNext( )

Loop

Nov 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2448
by: HarryD | last post by:
Hello, Maybe someone can help? According to ms kb-article 183329 i am trying to populate a treeview object on a asp-page, with realtime data from a accessdatabase. The database routine works fine and correctly returns the required records, the treeview object is not populated. The syntax of the treeview1.nodes.add statement is correct (have them written to the browser to check) but still no entries in the object.
2
3822
by: HarryD | last post by:
Hello, Maybe someone can help? According to ms kb-article 183329 i am trying to populate a treeview object on a asp-page, with realtime data from a accessdatabase. The database routine works fine and correctly returns the required records, the treeview object is not populated. The syntax of the treeview1.nodes.add statement is correct (have them written to the browser to check) but still no entries in the object.
42
11548
by: lauren quantrell | last post by:
So many postings on not to use the treeview control, but nothing recently. Is it safe to swim there yet with Access 2000-Access 2003?
3
3235
by: Soul | last post by:
Hi, I am learning C# at the moment. I am trying to develop a simple program that will get data from a MS Access database into a dataSet. The result of dataSet should be something like: Year Semester Code Task --------------------------------------------------- "2003" "One" "CSE9020" "Deliverable Item 1" "2003" "One" "CSE9020" "Deliverable Item 2"
4
2312
by: pmcguire | last post by:
I have a treeview with a lot of nodes. I want to load only the nodes that are initially visible when the form loads, and then continue to populate it in background and/or when the nodes are required by the user either scrolling or performing some other action that would move the treeview window to a particular "unloaded" node in the treeview Any advice on how to go about this? It seems I need a way of sensing a scroll event in the treeview...
7
2837
by: vsiat | last post by:
I am trying to create a treeview out of a database table with the typical structure ID, NAME, PARENTID, TYPE, EXTRA_INFO, where is linked to the . What I want to achieve is create a tree made of custom, extended nodes, which include all the extra information contained in the table and not just typical TreeNode objects. To do that, I first created a structure with all the extra
6
9972
by: Beginner | last post by:
Hi, I'm trying to populate a TreeView from an existing and filled in ListView (lvwBuild). lvwBuild is a basic two column listview which can have any number of rows. I would like the first column of lvwBuild to be a node and the second column to be a branch on the TreeView (hopefully I have the syntax correct). I've been researching how to do this but have come up empty. I'm guessing that you would fill an array from lvwBuild and...
7
7850
by: Joe Cool | last post by:
Let's say I have a Treeview control on a form. Each leaf node in the Treeview has a ContextMenuStrip, each with one ToolStripMenuItem, and all ToolStripMenuItems Click event is handled by a comment event handler. How do I determine which Treeview Node signalled the menu event in the common event handler?
0
1901
by: Falcula | last post by:
Hello, I have a treeview that i fill from a database, when i update nodename in database the treeview dont update. Its works when iam not useing enableviewstate="true" but then i loosing the current selection and stuff in the tree. I post my code here, any idea ?
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9548
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9325
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4876
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.