Dim trv2 As WinForm.TreeView = e.Form.Controls("TreeView2")
Dim an As List(of String)
For Each nd As WinForm.TreeNode In trv2.AllNodes
If nd.Checked = True Then
an.Add(nd.DataRow("thr_item_name"))
End If
Next
MessageBox.Show(1)
trv1.SelectedNode.DataRow.Locked=False
trv1.SelectedNode.DataRow("noauthority") = String.Join(",",an.ToArray())
trv1.SelectedNode.DataRow.Save
执行以上代码,在MessageBox前弹出“未将对象引用设置到对象的实例”的错误提示,求解!