I need to detect when the user changes pages by clicking on a tab. If certain conditions are not met, then I want to programmatically cancel the change. I see two events that might allow me to do this.
PageIndexChanging provides a CurrentIndex, NewIndex and Cancel properties. This would seem to do what I want but it does not fire when a page tab is clicked with a mouse.
SelectedPageChanging event does fire when the user clicks on a page tab. However, it does not contain a CurrentIndex, NewIndex or Cancel property. It does not seem to meet my needs.
What event should I use to detect when a user changes page tabs with a mouse and gives me programmatic control over the change?
thanks,
pat
PageIndexChanging provides a CurrentIndex, NewIndex and Cancel properties. This would seem to do what I want but it does not fire when a page tab is clicked with a mouse.
SelectedPageChanging event does fire when the user clicks on a page tab. However, it does not contain a CurrentIndex, NewIndex or Cancel property. It does not seem to meet my needs.
What event should I use to detect when a user changes page tabs with a mouse and gives me programmatic control over the change?
thanks,
pat