For a client request, the grid must lost focus after commit the last cell of a row.I tried to do it in the event AfterExitEditMode, using Me.Control1.focus(), but the focus goes to Control1, and back to the grid.Is any way to do it?
Hi,
It sounds like you just want the grid to commit any pending changes before you save the data to the back end. In that case, you can just call grid.UpdateData, or call the Update method on the active row.
Hi
I understand I can use the grid.UpdateData for commit the cell if I lost the focus (i.e. doing click in an other control). But idea is to change the focus programatically.
Private Sub Grid1_AfterExitEditMode(sender As Object, e As System.EventArgs) Handles Grid1.AfterExitEditMode If Me.Grid1.ActiveCell.Column.Key = "LASTCOL" Then Me.Button1.Focus() End If End Sub
The focus goes to Me.Button1 but then backs to the next cell.