Click here to Skip to main content
15,920,632 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: - how do I add a row in a datagridview to an existing object?

If I load a form and populate the obj the above is fine
I need to add an extra line(s) manually, say either with textbox controls or other vars

What I have tried:

me.datagridview_1.rows.add(string1, string2,string3)
Updated 5-Apr-23 21:54pm

See DataGridViewRow Class[^] for details.
Share this answer
It may be not the best solution. Better to create the extra row at start and hide it, via setting its width to zero.
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