Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Change datagridview row number from 0 to 1

Posted on 2012-12-26
5
Medium Priority
?
242 Views
Last Modified: 2013-01-13
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
Comment
Question by:dave_sky
  • 3
  • 2
5 Comments
 
LVL 48

Accepted Solution

by:
jpaulino earned 2000 total points
ID: 38722367
0
 

Author Comment

by:dave_sky
ID: 38722390
That example will not work
0
 
LVL 48

Expert Comment

by:jpaulino
ID: 38739557
why?
0
 

Author Comment

by:dave_sky
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
0
 

Author Closing Comment

by:dave_sky
ID: 38772913
Thanks! It worked after all...
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

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

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

783 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