DO
Declan O'Loughlin
November 4, 2009 12:25 PM UTC
Sorry ignore this - it should be in the winforms section
DM
Dinesh M
Syncfusion Team
November 9, 2009 09:45 AM UTC
Hi Declan,
You can use the following code to prevent a node from being deleted.
AddHandler diagram.Model.EventSink.NodeCollectionChanging, AddressOf EventSink_NodeCollectionChanging
Private Sub EventSink_NodeCollectionChanging(ByVal evtArg As CollectionExEventArgs)
If (evtArg.ChangeType = CollectionExChangeType.Remove) Then
evtArg.Cancel = True
End If
End Sub
Regards,
Dinesh