Hi..
I have a button that adds a new row to the grid. I need to set focus to the new row and open the first cell - which is combo box and set focus.
I have tried the following but it does not work.. any ideas? thanks
I have a button that adds a new row to the grid. I need to set focus to the new row and open the first cell - which is combo box and set focus.
I have tried the following but it does not work.. any ideas? thanks
this.gridPO_det.ScrollIntoViewAsync(new_det
, (f) =>
{
GridViewRow row = f as GridViewRow;
if (row != null)
{
GridViewCell cell = row.Cells[0] as GridViewCell;
cell.BeginEdit();
Dispatcher.BeginInvoke(
new Action(() =>
{
((
RadComboBox)cell.GetEditingElement()).IsDropDownOpen = true;
}));
}
});