Vertragsverwaltung-Klassenbibliothek  

clsParentelemente.Update_Node -Methode

Parent-Beziehung herstellen und Struktur abfüllen

[Visual Basic]
Private Sub Update_Node( _ 
ByVal oSourceData As DataTable, _ 
ByVal Tree As TreeView
)

Parameter

oSourceData
Tree

Quellcode

[Visual Basic]
        Private Sub Update_Node(ByVal oSourceData As DataTable, ByVal Tree As TreeView) 
If Not (oSourceData Is Nothing) Then 
Dim oView As DataView = oSourceData.DefaultView 
Dim oTable As DataTable = oView.Table 
Dim oDS As DataSet = New DataSet() 
oDS.Tables.Add(oTable.Copy()) 
 
If oDS.Relations.Contains("SelfRefenceRelation") = False Then 
oDS.Relations.Add("SelfRefenceRelation", _ 
oDS.Tables(0).Columns("Vertragselementnr"), _ 
oDS.Tables(0).Columns("Parentid")) 
End If 
oTable.Dispose() 
oTable = Nothing 
LoadNode(oDS, Tree) 
oDS.Dispose() 
oDS = Nothing 
End If 
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

clsParentelemente