Change focus to ultrafinal ultra-lattice?

I want to change the focus on the grid cell.

Suppose I click on cell [1,1] , then I want to set focus on cell [1,2] .

Where cell[1,1] means cell (column 1) and (row 1)

+5
source share
1 answer

You can use the AfterCellActivate event and write this code

 void grid_AfterCellActivate(object sender, EventArgs e) { if (grid.ActiveCell != null && grid.ActiveCell.Column.Index == 1 && grid.ActiveCell.Row.Index == 1) { grid.ActiveCell = grid.Rows[1].Cells[2]; // And if you want also to automatically // put your cell in edit mode add this line grid.PerformAction(UltraGridAction.EnterEditMode); } } 
+2
source

Source: https://habr.com/ru/post/1244346/


All Articles