M
Marc R.
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 ?
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
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 ?
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