I have a grid with a column whose CellTemplate is being set dynamically on each row via the CellTemplateSelector property of the column. The cell will either be a checkbox, textbox, combobox, or datepicker. The controls are showing correctly, and they are binding correctly. However, when I tab into a cell in this column, I have to tab twice to actually be able to modify the data. The first tab puts the cursor into the correct cell but not into the embedded control. The second tab puts the cursor into the control. Is there a way around this?
Also, is there a simple way to get the cell to respond to the Enter key after editing data in one of these controls (specifically the text box) rather than having to tab or click out of the cell? I'm sure I could probably handle KeyUp or KeyDown events to make it work, but I was looking for a way to handle it within the XAML.
Thanks,
Ben
Also, is there a simple way to get the cell to respond to the Enter key after editing data in one of these controls (specifically the text box) rather than having to tab or click out of the cell? I'm sure I could probably handle KeyUp or KeyDown events to make it work, but I was looking for a way to handle it within the XAML.
Thanks,
Ben