Vertragsverwaltung-Klassenbibliothek  

Form2.RecursivelyLoadNode -Methode

Child-Nodes hinzufügen

[Visual Basic]
Private Sub RecursivelyLoadNode( _ 
ByVal oDataRow As DataRow, _ 
ByRef oNode As TreeNode, _ 
ByVal type As String, _ 
ByVal Details As Integer
)

Parameter

oDataRow
oNode
type
Details

Quellcode

[Visual Basic]
    Private Sub RecursivelyLoadNode(ByVal oDataRow As DataRow, ByRef oNode As TreeNode, ByVal type As String, ByVal Details As Integer) 
Dim oChildRow As DataRow 
For Each oChildRow In oDataRow.GetChildRows("SelfRefenceRelation") 
Dim oChildNode As New TreeNode() 
oChildNode.Text = oChildRow("Bezeichnung").ToString() 
oChildNode.Tag = New Treenode_Descriptor("Vertragselement", oChildRow("Vertragselementnr").ToString(), xVertragspartnernr, oDataRow("vertragstypnr").ToString) 
oChildNode.ImageIndex = 2 
oChildNode.SelectedImageIndex = 2 
oChildNode.StateImageIndex = 2 
oNode.Nodes.Add(oChildNode) 
RecursivelyLoadNode(oChildRow, oChildNode, type, Details) 
Next oChildRow 
End Sub

Forderungen

Plattformen: Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

Siehe auch

Form2