I've been working on building a treeview that's basically the navigation control for the application, and I've run into a bit of a question.
When I'm using the events BeforeSelect & AfterSelect, I'm getting the warning that I'm supposed to be using the 'Selected' event. However, the Selected event doesn't have any information attached to it - it implements the standard (object sender, EventArgs e) format, with no information on which node has been selected.
So, that's one issue - what's the best way to get the information I need now? (Which node has been selected?)
2nd issue is this: If the user is on node A and has done some editing for that node, and wants to move to node B, I want to warn them about moving away before saving.. So, I want to capture the 'trying to move away' event and cancel the move. How do I do this?
When I'm using the events BeforeSelect & AfterSelect, I'm getting the warning that I'm supposed to be using the 'Selected' event. However, the Selected event doesn't have any information attached to it - it implements the standard (object sender, EventArgs e) format, with no information on which node has been selected.
So, that's one issue - what's the best way to get the information I need now? (Which node has been selected?)
2nd issue is this: If the user is on node A and has done some editing for that node, and wants to move to node B, I want to warn them about moving away before saving.. So, I want to capture the 'trying to move away' event and cancel the move. How do I do this?