datgridview to datatable

R

Rex NFX

i have a datagridview bound to a dataset that is populated with data
from a query from the source datatable. the data is then modified by
some procedures but still maintains the same schema. how do i update a
different datatable with the updated data from the datagridview? the
datatable to be updated must be cleared first. the datatable to be
updated has the same schema as the source datatable. I'm new to c# and
this is my first database program using c#.

basically i want to be able to:

populate new datatable with data from datagridview. please help.
 
N

Nicholas Paldino [.NET/C# MVP]

Rex,

Why not get the original DataTable (after you have updated it) and then
call the Copy method? This will give you a new DataTable with the structure
and the contents of the original.

Then, you can use it where you need your copy.
 

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