sorry this code
If (e.FieldName = "SDA") Then
If e.FieldValue = 0 Then
Dim parantRow As Node = e.Field.Start.GetAncestor(NodeType.Row)
'Remove row
parantRow.Remove()
'doc.Range.Bookmarks("SDAV").BookmarkStart.ParentNode.Remove()
End If
End If
sorry this code
If (e.FieldName = "SDA") Then
If e.FieldValue = 0 Then
Dim parantRow As Node = e.Field.Start.GetAncestor(NodeType.Row)
'Remove row
parantRow.Remove()
'doc.Range.Bookmarks("SDAV").BookmarkStart.ParentNode.Remove()
End If
End If
Hi
Thanks for your inquiry. Maybe you should check whether parentRow is not null. Please try using the following code:
If (e.FieldName = "SDA") Then
If e.FieldValue = 0 Then
Dim parantRow As Node = e.Field.Start.GetAncestor(NodeType.Row)
'Remove row
If (Not parantRow Is Nothing) Then
parantRow.Remove()
End If
End If
End If
Hope this helps.
Best regards.
Thank You Very Much.