I have treeView with checkboxes.... When I uncheck checkbox related to treenode (if I do only for one node at the time before I save changes against database) then row deletion from datatable works OK...
But when I try to uncheck more then 1 node in treeView before I save changes against database then I get the following message:
"Deleted row information cannot be accessed through the row."
My vb code is bellow....
Please, I would appreciate a lot if you could help me to solve the problem...
Thanks in advance...
Private Sub oTV_AfterCheck(ByVal sender As Object, ByVal e As System.Windows.Forms.TreeViewEventArgs) Handles oTV.AfterCheck
If e.Node.ForeColor = Color.Blue Then GoTo Exitline
If e.Node.Checked = False Then
Private Sub UnCheckAllChildren(ByVal tn As TreeNode, ByVal bCheck As [Boolean])
If tn.Nodes.Count = 0 Then
For Each dr As DataRow In ds.Tables("dtSP2").Rows
If dr("Leaf_value") = tn.Tag Then