Add new row to a databound DatagridView

B

Bill Nguyen

I would like to allow user to add new row to a bound DGV. I was able to
supply default values for all columns in teh new row. However, as soon as
the cursor leaves the new row, the whole row dispappear! This doesn't happen
to rows exist in the datasource.
I tried to use .newrowneeded but to no avail.
Please tell me if this is possible or I have to use unbound or vitual mode.

Thanks a million

Bill

-----------

With dgvPC

..AutoGenerateColumns = False ' I defined columns myself

..AllowUserToAddRows = True

..AllowUserToDeleteRows = True

..DataSource = dDriverHour

End With
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top