ultraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.FirstCellInGrid).
ultraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.entereditmode).
If you are clicking on a button, then the button control has focus and the grid does not. So you probably just have to call grid.Focus() first.
Hello
I'm trying to archive the same thing, but these lines don't work:
DgListValues.Rows[0].Cells[0].Activate(); this.DgListValues.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode, false, false);
The cell gets activated but it does not enter edit mode.
I'm trying to place the focus on the first row so the user can start editing without clicking on the grid. For testing purposes i'm doing this only after clicking a button.
Thanks in advance
Thanks very much.
Worked like a charm after a little change.
Code now is:
.ActiveCell = .DisplayLayout.ActiveRow.Cells("Item Description").PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode, False, False)
Thanks again for the pointers.
Deasun
If ActiveCell is null, then the grid cannot be in edit mode.