This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi There, I have a few questions about the datagrid: 1) Lets say I have a few controls on a window, it includes a few buttons, a few textboxs and a WPF datagrid. you use tab key to move the focus on to the next control in order, once it trapped in the datagrid, you cannot use tab key to move to other controls. This is always reproducible. 2) Some times, inside a DataGrid, if it has a few records in the datagrid, you can not use the arrow key to move between records or cells. This is a bit hard to reproduce, but it does happen quite often. I am using June 14th 2012's nightly build. Does anyone else have same problem, how to solve them? Or the datagrid just has some problem. Thanks a lot. Gordon |
|
|
Hello Gordon 1) The next nightly build will have a candidate fix for the tab stealing issue. While pressing tab, the controls within the data grid will probably still be part of the tab sequence, but the grid will no longer swallow the tab key. Let me know if more work needs to be done on this. 2) If one of the cells is in edit mode, then using the arrow keys will not move between records or cells. This is because the editor within the cell will be handling the arrow key input. Is this what you are observing? or does it still fail to work when there is no cell in edit mode? Jason Fauchelle |
|
|
Thanks Jason, It fixes the tab key trapping problem on June 29 2012 nightly build. About the arrow key, the problem is that my colleague put the datagrid on a scrollview and the scrollview takes the arrow key sometimes. Gordon |
|
|
Hello Gordon In case you still need the DataGrid in a ScrollViewer: you can set ScrollViewer.Focusable to False which will solve this issue. Jason Fauchelle |
|
|
Hi Jason, Spoke too soon about the DataGrid trap the Tab Key. Again we can use the tab key to navigate from the first cell to the last cell in the DataGrid, but cannot navigate out of the data grid to the next control in tab order, especially, when last cell has non-texblock control, i.e. TextBox and ComboBox or any other editable control. I also tried in your sample, it does not seem to work (Version 6.0). Could you take a look again? Thanks, Gordon |
|
|
Hello Gordon I've been able to reproduce this issue. I've tried all the usual tricks but nothing has worked so far. I will continue investigating this week. -Jason Fauchelle |
|
|
Hello Gordon I've looked into this again by experimenting with preventing the various components of the DataGrid from stealing Tab control. I have had some success, but haven't achieved a final solution yet. I'll have another attempt early next week. -Jason Fauchelle |
|
|
Hello Gordon I have now resolved this issue. While the DataGrid is in edit mode, it will no longer steal tab navigation and will behave the same as if the DataGrid was not in edit mode (which was allowing the tab to go to the next controls). This will be resolved in the next nightly build of version 6.0. -Jason Fauchelle |
|
|
Thanks, Jason. It is fixed. |
|