8

I am binding a DataTable to a DataGrid(WPF toolkit) for add, edit and delete. I am able to use tab keys to navigate through the cells from top to bottom. But as soon as I press tab on last rows' last column, it is not taking the cursor to the first cell of new row. How can I achieve this?

Thanks

Dave Clemmer
  • 3,741
  • 12
  • 49
  • 72
joe
  • 589
  • 5
  • 16
  • 3
    Is this sorted out by any way? Can you please share your experience on this? I'm also facing same problem. – Gopinath May 04 '10 at 09:25

3 Answers3

2

Have you tried KeyboardNavigation.TabNavigation="Cycle"?

0

I would try a keydown event that checks for the tab key and checks to see if it is the last column # if so it would go to the first column in the next row.

Lainezor
  • 500
  • 9
  • 16
-4

Please check this:

A datagrid has a property CanUserAddRows. Set in to true:

CanUserAddRows="True"

The mode of databinding should be TwoWay:

Mode="TwoWay"
Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
Peter
  • 9