mardi 21 avril 2015

how to insert textboxes and data from datagridview to tabla sql C#

I have few textboxes and a DataGridView in a winform c#.

enter image description here

I'm trying to make a single insertion but for every foreach iteration my code is inserting data from the datagrid.

enter image description here I want to do this: Insert both textboxes as data from datagrid in a single insertionsql Can anybody help me with this?

Aucun commentaire:

Enregistrer un commentaire