Hello,
I'd like to check whether the user has currently the last (= most bottom right) cell in the grid selected, so I can jump back the the first cell in the grid if he tabs further.
I'm currently doing it like this. However this doesn't work if the user has altered the order of the columns and moved them around, since the last cell seems to always stay the same, even if it has been moved.
Is there maybe any "better" way to do this?
Hi,
Thank you for your reply. I edited my previous post.
I think you confused two different threads there :)
Thank you for your reply. In order to enter the first cell in edit mode I access its editor and invoke its ‘StartEditMode’ method:
CellValuePresenter.FromCell(grid.ActiveCell).Editor.StartEditMode();
You could see it in my sample application. Regarding your second concern if the focus is on the XamDataGrid when tabbing through the cell the tabbing does not goes out of the grid. If the focus is on element out of the XamDataGrid the tabbing goes through all other controls and then returns again to the XamDataGrid. This is the expected behavior.
Let me know, if you need any further assistance on this matter.
Sorry for the delay, I was just able to try it today.
I've now changed the event to KeyDown, and while the first overall cell gets selected, it doesn't enter edit mode. Also, when tabbing out of that cell, the focus is set to other controls on the window, e.g. our custom titlebar, then our buttons on the button and then again on the cells in our grid. I wish I could provide more details, but I'm not sure what you'd need.
I am just checking if you require any further assistance on the matter.