How do I determine the current row that I am focused on in a DataGrid component (and hence the contents of that row) ?
We've made use of the HitTest but this only seems to be effective when we select the row through means of a MouseClick. We need to allow for the fact that the user may have clicked on it, cursor'ed up/down/left/right, Page Up/Down, Ctrl+Home/Ctrl+End, etc.
Ideally I want to have a button that I click and it reads back to me the contents of the current row.
I'm guessing this is easily done but I can't see it for looking.
Any help would be appreciated.
Thanks in advance
Steve
We've made use of the HitTest but this only seems to be effective when we select the row through means of a MouseClick. We need to allow for the fact that the user may have clicked on it, cursor'ed up/down/left/right, Page Up/Down, Ctrl+Home/Ctrl+End, etc.
Ideally I want to have a button that I click and it reads back to me the contents of the current row.
I'm guessing this is easily done but I can't see it for looking.
Any help would be appreciated.
Thanks in advance
Steve