Hi
Thank you very much for your response. I have changed my code a little bit to help me figure out where it is going wrong. The sample you provided is pretty much exactly how i had it and it works perfectly. The only difference was the way in which the method was called. Your sample was on button click. The way i was calling this method was from a DataGrid_MouseDoubleClick event and I've discovered this is where the issue lies.
If i keep double clicking sometimes it activates the new tab, it all seems to be about timing. Perhaps the second click is overriding focus or similar I'm really not sure. I added a button to the grid row to run the exact same method and it works every time. It just does not like being called (or should i say its temperamental) from the DataGrid DoubleClick event.
Do you have any suggestions on why that could be?
Hi,
Thank you!
It was as simple as that, much appreciated ;)