Change datagridview row number from 0 to 1

Software vb.net & sql server 2005

I am looking for sample code to change datagridview row number to 1 if 0 in the useraddedrow event

Thanks!
dave_skyAsked:
Who is Participating?
 
Jorge PaulinoIT Pro/DeveloperCommented:
0
 
dave_skyAuthor Commented:
That example will not work
0
 
Jorge PaulinoIT Pro/DeveloperCommented:
why?
0
 
dave_skyAuthor Commented:
This is what I tried...

Private Sub TblBasicUpgradesDetailDataGridView_DefaultValuesNeeded(ByVal sender As Object, _
        ByVal e As System.Windows.Forms.DataGridViewRowEventArgs) _
        Handles TblBasicUpgradesDetailDataGridView.DefaultValuesNeeded

        With e.Row
            .Cells("sysAppOrder").Value = "1"
           
        End With

    End Sub
0
 
dave_skyAuthor Commented:
Thanks! It worked after all...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.