Change datagridview row number from 0 to 1

Posted on 2012-12-26
Last Modified: 2013-01-13
Software & sql server 2005

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

Question by:dave_sky
  • 3
  • 2
LVL 48

Accepted Solution

jpaulino earned 500 total points
ID: 38722367

Author Comment

ID: 38722390
That example will not work
LVL 48

Expert Comment

ID: 38739557

Author Comment

ID: 38747305
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

Author Closing Comment

ID: 38772913
Thanks! It worked after all...

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now