Link to home
Create AccountLog in
Avatar of David Svedarsky
David SvedarskyFlag for United States of America

asked on

Change datagridview row number from 0 to 1

Software & sql server 2005

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

Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of David Svedarsky


That example will not work
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
Thanks! It worked after all...