I am editing a row in a RadGridView (WPF -- form application). I want to use the CellEditEnded event, when they are done editing a particular cell, I want to move the focus back to a textbox on the form. When the user hits Tab the CellEditEnded event fires and that seems to be the even to use.
I can trap for the column and when I call txtProductCode.Focus(); nothing happens. When I hit tab again the next cell in the same grid row has focus. So it is behaves like it needs to 'leave' the grid first.
Any thoughts?
I can trap for the column and when I call txtProductCode.Focus(); nothing happens. When I hit tab again the next cell in the same grid row has focus. So it is behaves like it needs to 'leave' the grid first.
Any thoughts?
private void gvCount_CellEditEnded(object sender, Telerik.Windows.Controls.GridViewCellEditEndedEventArgs e)
{
//if edit editing on Quantity cell, then position focus to product code -- edit end typically comes from when tab key is clicked
if (e.Cell.Column.UniqueName == "Quantity")
{
txtProductCode.Focus();
}
}