Click here to Skip to main content
15,918,333 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using a datagridView with dataset. How do I add a new row and assign some default values to cells?
With datagridView
              .AutoGenerateColumns = False
                 .DataSource = mydataset
  End With

Since it is bound to a DataSet, have you tried adding a row to the DataSet and editing the values of the DataSet?
Share this answer
Try adding a new row to the data table you have binded to your datagridview. See: NewRow[^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900