By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,888 Members | 1,232 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,888 IT Pros & Developers. It's quick & easy.

How to ... Bounds a Node to a Dataview

P: n/a
Hi all,
The beginner strikes back again (sorry)

this is the class I use for Nodes into a treeview,
I need to bind each field to a database..... How Can I do that ?

What I tried so far is to run a Dataview for operations, then set the
DataView rowfilter to "ser_id = " & ctype(nodes, service).id
then change directly into the Dataview.item(0) the columns I need to change.
Is there a more simple way to bind the "Service" nodes directly to the table
so I don't have to work with the Dataview ?

More General Ideal, I need to have each Service (nodes) to be bound to 1 and
only 1 dataRowView.
Any Example how to build a binding to a database with our own class would be
appreciated.

Thanks to you all,
Have a nice day !

Marc R.


Public Class service
Inherits treenodes

'Private Member

Private p_ID As Integer

Private p_Name As String

Private P_Active As Boolean

Public Property ID() As Integer

Get

Return p_ID

End Get

Set(ByVal Value As Integer)

p_ID = Value

End Set

End Property

Public Property Name() As String

Get

Return p_Name

End Get

Set(ByVal Value As String)

p_Name = Value

End Set

End Property

Public Property Active() As Boolean

Get

Return P_Active

End Get

Set(ByVal Value As Boolean)

P_Active = Value

End Set

End Property

End Class

Feb 8 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.