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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datagridview selected row update in vb.net

Status
Not open for further replies.

bharathi228

Programmer
Feb 12, 2009
12
hello sir,

iam new to windows application.iam working with datagridview in vb.net .how to update the selected row in datagridview.any one help me with this.
 
hello,

i want to update one column and update chages to database.so i want to use
For Each row As DataGridViewRow In DataGridView1.SelectedRows


i dont know using this how to update the rows to database in datagridview
 
Are you familiar with DataAdapters? Normally, you have created Commands to SELECT, INSERT, UPDATE and DELETE data against your database. These Commands are attached to the DataAdapter. The DataAdapter then executes those commands against your data you've changed in your DataSet.

See the DataAdapter.Update method:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top