Help i want to make button for NextData/NextRow in DataGridView

suryo

New member
Joined
Jul 10, 2008
Messages
4
Programming Experience
Beginner
help, i'm a new user of vb.net and want to ask about DataGridView , my DataGridView is DataGridView1 ,
i want to create button for nextData/nextRow but my code didn't work, plzzz help me

This is My SourceCode :

Dim a As Integer = DataGridView1.CurrentRow.Index
Dim b As Integer = DataGridView1.Rows.Count
Try
If a < b Then DataGridView1.Rows.GetNextRow(DataGridView1.Curren tRow.Index + 1, DataGridViewElementStates.ReadOnly)
End If

Catch ex As Exception
MsgBox(ex.Message)
End Try

anybody have solutions ??? i don't want use a bindingsource.moveNext. i'm curious about this ... helppp me plzz....
 
Back
Top