Skip to content

Posicionarse en fila registro acabado de modificar DataVIewGrid

August 10, 2012

‘ Declarem la variable
Dim filaSelec As Integer = 0

‘ Recollim el valor del registre (fila) seleccionat actualment i ho desem a la variable

Private Sub DGArticles_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DGArticles.CellContentClick
filaSelec = DGArticles.CurrentRow.Index
End sub

‘ posicionar-se sobre la fila del registre que acabem de modificar
DGArticles.Rows(filaSelec).Selected = True
DGArticles.CurrentCell = DGArticles.Rows(filaSelec).Cells(0)


From → Grids

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: