Is there a way to modify the "CheckBox in Unbound Field" demo so that moving into the checkbox column using Tab button would automatically focus on the checkbox instead of the CellValuePresenter? Otherwise the user has to use the mouse to click the checkbox instead of just pressing Space.
Hello abryte,
Thank you for your post. I have been looking through it and I suggest you add the following code for CellActivated Event of your xamDataGrid:
if (e.Cell.Field.Name == "MyField") { CheckBox checkeditor = Utilities.GetDescendantFromType(CellValuePresenter.FromCell(e.Cell), typeof(CheckBox), false) as CheckBox; if (checkeditor != null) { checkeditor.Focus(); } }
Where MyField is the name of the Unbound Field with the CheckBox.
Looking forward for your reply.