Welcome to Dream.In.Code
Getting C# Help is Easy!

Join 136,515 C# Programmers for FREE! Get instant access to thousands of C# experts, tutorials, code snippets, and more! There are 1,748 people online right now. Registration is fast and FREE... Join Now!




New records entered in datagridview to be inserted in database table u

 
Reply to this topicStart new topic

New records entered in datagridview to be inserted in database table u, New records entered in datagridview to be inserted in database table u

sreenu123
15 Aug, 2008 - 08:17 AM
Post #1

New D.I.C Head
*

Joined: 15 Aug, 2008
Posts: 1

I have a table CUSTOMER and CUSTOMER_CONTACTS. Each customer will have multiple contacts.

Im displaying CUSTOMER details in Textboxes and corresponding CUSTOMER_CONTACTS in a datagridview. For new customer entry, on Insert, datagridview should become empty so that user enters multiple contacts in datagridview. There multiple records (newly entered records in the gridview) should be inserted into CUSTOMER_CONTACTS. Im able to insert textboxes informationto CUSTOMER table but how to insert records in gridview to CONTACT_DETAILS in a single shot. I request C# code for the same. I wl be very greatfull to you.
User is offlineProfile CardPM
+Quote Post

Jayman
RE: New Records Entered In Datagridview To Be Inserted In Database Table U
15 Aug, 2008 - 09:58 AM
Post #2

Student of Life
Group Icon

Joined: 26 Dec, 2005
Posts: 6,947



Thanked: 42 times
Dream Kudos: 500
Expert In: C#, VB.NET, Java

My Contributions
You can find a walkthrough here that describes how to do it.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/2/08 09:06PM

Live C# Help!

C# Tutorials

Reference Sheets

C# Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month