Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
280
BeforeDelete not firing when user presses DEL key
posted

I have a VB.NET application where I'm loading the UltraWinTree from the results of a query (but not using binding) and as I add the nodes to the tree I decide node by node whether to set the OverRide.AllowDelete = True or False.

I've run through the code and verified that the nodes that should have AllowDelete = ture are set properly and I've debugged the code in my AfterSelect Event on the Node to verify it as well.  But after a node is selected and I press the Delete Key the BeforeDelete event doesn't fire.

Thanks,

JCIrwin

Parents
  • 280
    Verified Answer
    posted

    I was able to figure this out by walking through my code and explaining it to a co-worker.

    What we found is that when I load the data from the results of an SQL query I was setting the .AllowDelete = true where I should have been setting it to DefaultableBoolean.True.

    All is well now.

Reply Children
No Data