Hi Zabamkd,
If you have a screen with three textboxes and also a grid with multiple rows you are probably saving multiple records to multiple tables in your database. You probably want to look at using a Data Adapter object to do multiple records at a time. You could try
googling [
^]or searching CP for articles to help you. Here are some that I found that you may find helpful:
Inserting relational data using DataSet and DataAdapter[
^]
Building database application with ADO.NET for a beginner.[
^]
Also, about the code you posted. You said that it didn't work. Please let us know what error message you get or what is happening that is incorrect and we can try to help you more from there.
Hope this helps.