Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 246
  • Last Modified:

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!
0
dave_sky
Asked:
dave_sky
  • 3
  • 2
1 Solution
 
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.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now