i donno how to set focus point always to the new row in datagridview in the beginning??
can give some example for me???Because i just start to learn vb.net...Thanks a lot, richardOD...
2009-07-12 17:13:43
Modify your question with some sample code of what you are doing.
RichardOD
2009-07-12 17:46:02
A:
You want to handle the RowsAdded event of your DataGridView and just select the newly added row.
Private Sub MyDataGridView_RowsAdded(ByVal sender As Object, ByVal e As DataGridViewRowsAddedEventArgs) Handles MyDataGridView.RowsAdded
MyDataGridView.Rows(e.RowIndex).Selected = true;
End Sub
James
2009-07-12 18:41:06
A:
If (DgViewCityMaster.Rows.Count > 0) Then DgViewCityMaster.Rows(0).Selected = True End If
' Here DGViewCityMaster is my Data Grid View
the
2010-02-24 11:14:16
A:
dim NoRow As Integer = 2 me.gridTickets.CurrentCell = me.gridTickets.Rows(NoRow).Cells(0)
Adios Amigo!! From: Mexicali, Baja California, México.
RayDelfin
2010-06-24 01:01:05