DataGridView datasource

Laith Scofield

New member
Joined
Oct 24, 2010
Messages
3
Programming Experience
3-5
Anybody know how to (INSERT INTO) datagridview from (Text Box) at runtime ??
by using (Datareader) and (Dataset)???
 
What you actually do is quite different to what you're asking for. You use a DataAdapter to populate a DataTable with data by calling Fill. The DataTable is bound to the DataGridView via the grid's DataSource property and the user adds, edits and deletes data in the grid. If you want to modify the data in code you do so via the DataTable. When you're done, you use the same DataAdapter to save the changes back to the database by calling Update.

Retrieving and Saving Data in Databases
 
Back
Top