• 0

C# Validating treeview nodes


Question

I've been trying to validate a treenode from a treeview after the user edits it's text. To edit a treenode I use the node doubleclick event on the treeview. When the user doubleclicks a node I use the beginedit method on that node. But I need to validate what the user enters. And this is where all my problems begin. I tried using afterlabeledit event to validate the text, but the problem is that the event is raised before the node's text is updated and I always ends up failing the validation. I also tried the validated or validating events but they are never raised.

Any ideas how to do this or explanations??

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.