I'm building this little code to populate a treeview with checkboxes. Example:
Private Sub frmPermissoes_Load(sender As Object, e As EventArgs) Handles MyBase.Load
TreeView2.CheckBoxes = True
Me.Controls.Add(TreeView2)
TreeView2.Nodes.Clear()
Dim root = New TreeNode("Primavera")
TreeView2.Nodes.Add(root)
TreeView2.Nodes(0).Nodes.Add(New TreeNode("Contabilidade"))
TreeView2.Nodes(0).Nodes(0).Nodes.Add(New TreeNode("Diarios"))
For loopindex As Integer = 1 To 4
TreeView2.Nodes(0).Nodes(0).Nodes(0).Nodes.Add(New TreeNode("Teste" & Str(loopindex)))
TreeView2.ExpandAll()
Next loopindex
Me.Text = "teste"
End Sub
What I intend with this code, using the SPRING engines of the Spring administration module is to fill in the nodes of the TreeView
, with the code and names of the journals, then in their%% can give their permissions, which is missing from the diaries.
I needed help using this part of the engines, regarding the permissions that are given to the user profiles, can anyone help me?