Hi, everyone
I have a problem, with a datagridview, I am selecting a cell programatically,
the change og cell is done well, but is not showed in the screen, I mean, if the selected cell is out of the showed area of the datagridview, the view of the datagridvies does not change.

anyone can help me please?, this is my code

Private Sub DataGridView1_CellEndEdit(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit

Me.BindingContext(Me.BindingSourceCatInsumos).EndCurrentEdit()
If e.ColumnIndex = 0 Then
Me.DataGridView1.CurrentCell = Me.DataGridView1.Item(1, Me.DataGridView1.CurrentCell.RowIndex)

DataGridView1.FirstDisplayedCell = Me.DataGridView1.Item(1, Me.DataGridView1.CurrentCell.RowIndex)

End If

thank you in advance.

Eduardo Castillo