Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Edit a Windows Forms DataGrid Control?

Status
Not open for further replies.

DickyDoo

Technical User
Apr 16, 2003
3
GB

Hi all

Does anybody know how to input data to a datagrid on a windows form and grab the values to update a database.

thanks in advance.
 
a datagrid has a datatable associated with it. populate the datatable to 'input' data to the datagrid.

to update values to a database, the simplest way is to declare a dataadapter that fills a datatable in a dataset and then is declared as a datasource for the datagrid. when you need to update to the database, simply use Update on the dataadapter.

--------------------------
"two wrongs don't make a right, but three lefts do" - the unknown sage
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top