DataGrid navigation between cells

Posted on October 28, 2008. Filed under: Silverlight |

We can navigate between the cells of the DataGrid using Tab key or arrow keys, but because of bug in RTM we have to use a workaround mentioned in this forum post. If we are using CellTemplates the cell will get the focus but we still have to click the cell to force it go into EditMode. Another way is to handle the CurrentCellChanged event and call the BeginEdit() method will force the current cell to go into editmode

Make a Comment

Make A Comment: ( 3 so far )

blockquote and a tags work here.

3 Responses to “DataGrid navigation between cells”

RSS Feed for Lee’s corner Comments RSS Feed

Hi Lee

Does this work in SL2?
See my poste here – http://silverlight.net/forums/t/49402.aspx

It doesnt work for me. Even if i explicitly give BeginEdit(), i still need to click on the cell to edit the item. Can you help me resolve this issue.
Thanks for your help.

Just add a contentControl after the grid. I replied to your post

Up and down arrow does not start edit mode even if ContentControl is placed after DataGrid ?
How to force up and down arrow key presses to start edit mode also ?

http://silverlight.net/forums/AddPost.aspx?ReplyToPostID=161262


Where's The Comment Form?

Liked it here?
Why not try sites on the blogroll...