For Each DTRow In DTS.Tables(0).Rows
CNodeX = New TreeNode
CNodeX.Text = CStr("" & DTRow("VAR_GDLNNAMECN"))
CNodeX.Value = CStr("" & DTRow("VAR_TABLENAME")) & "|" & CStr("" & DTRow("BIG_GDLNTREEAUTOID"))
If CStr("" & DTRow("BIT_ISPAR")) = "1" Then
CNodeX.ImageUrl = "~/Images/FOLAR_C.gif"
Else
CNodeX.ImageUrl = "~/Images/Page_2.gif"
End If
NodeX.ChildNodes.Add(CNodeX)
Next
NodeX.Expand()