I had quick search implemented in first column of the grid and on after cell update check in Database that item exists or not. IF exists then fill row other cell with values and cursor moves to next cell but if item not exists then I had reset focus back to first cell although I tried
this.ultragrid1.ActiveCell = ultragrid1.ActiveRow.Cells[0] ; this.ultragrid1.PerformAction(UltraGridAction.EnterEditMode, false, false);
but its not working and on press of tab it search and cursor moves to next cell of the row.Can you suggest me a way to set focus back to previous cell.
What event are you using? If you use BeforeExitEditMode or BeforeCellDeactivate, you can stop the cell from losing focus.
Hi,
How to stop cell from losing focus? with which methods?
Thanks