Hi,My problem is quite simple:
1. Select a row in the grid2. Press "Home"-key as often as you want, the grid will keep the focus.3. Press "End" and the last record will be focused.4. Press "End" again and the grid will loose the focus. That's not what I expect and want the grid to do.How can I prevent that behaviour? Best regards,cew3
Hello,
I have been looking into the sample and I can suggest you handle the XamDataGrid's PreviewKeyDown event and add the following code in its handler:
if ((sender as XamDataGrid).ActiveRecord == (sender as XamDataGrid).Records.Last() && e.Key == Key.End) { e.Handled = true; }
Please let me know if this helps you or you need further assistance on this matter.
Hi Stefan,
I extended the sample to show how the focus leaves the grid.
If you tab 'end'-you will see that the second tab gets the focus.
Best,cew3
Thank you for your post. I have been looking into it and I created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.
Looking forward for your reply.