katz
Member
- Joined
- May 24, 2013
- Messages
- 6
- Programming Experience
- Beginner
I've got some data in a database that I need to display in a datagridview. So far so trivial, but I also want the user to be able to add and delete rows from the datagridview, and of course they can't while it's data bound. So the question is: How would you go about getting data from a database into a datagridview without it being data bound at the end?
(I've come up with a few solutions, but they're unwieldy and work poorly; eg, create a new hidden datagridview, populate that from the database, then copy the data over one row at a time. But there's got to be a better way.)
(I've come up with a few solutions, but they're unwieldy and work poorly; eg, create a new hidden datagridview, populate that from the database, then copy the data over one row at a time. But there's got to be a better way.)