Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I found a way on MDSN to update a dataset and display it back to the datagridview. Almost like refreshing the datagridview. However I'm hoping to find a way to do this with an oledpdataadapter. Here is the code I found below to fill the datagridview with the updated contents, there has to be a way to do this same thing with the oledbdataadapter.


C#
this.rscan_queueTableAdapter.Fill(this.rscanDataSet.rscan_queue)
   dgv_queue.refresh()
Posted

1 solution

That code does not update a DGV. It updates a DataTable, which you then have to bind to a DGV.

You can find an example of using the OleDataAdapter here[^].
 
Share this answer
 
Comments
CAS1224 24-Aug-13 10:02am    
Thanks for your help!

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