hi,
i work on a widows application sql server ce database and i want to know how to add the rows of a datagridview to a datatable.
thanks
basma.lm
0
Junior Poster in Training
Recommended Answers
Jump to Post>how to add the rows of a datagridview to a datatable./b]
1. Populate/create datatable
DataTable dt=new DataTable(); dt.Columns.Add("Col1"); dt.Columns.Add("Col2"); dt.Rows.Add("A","B");
2. DataBindings
dataGridView1.Datasource=dt;
Jump to Post>i want to "copy" its rows in a datatable created in my database.
To update dataGridView (Datasource), use dataAdapter or command objects.
All 6 Replies
kvprajapati
1,826
Posting Genius
Team Colleague
basma.lm
0
Junior Poster in Training
kvprajapati
1,826
Posting Genius
Team Colleague
basma.lm
0
Junior Poster in Training
kvprajapati
1,826
Posting Genius
Team Colleague
basma.lm
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.