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

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

Page 1 of 1

1 Replies - 2413 Views - Last Post: 15 August 2008 - 10:58 AM Rate Topic: -----

#1 sreenu123  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 15-August 08

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

Posted 15 August 2008 - 09:17 AM

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.

Is This A Good Question/Topic? 0
  • +

Replies To: New records entered in datagridview to be inserted in database table u

#2 Jayman  Icon User is offline

  • Student of Life
  • member icon

Reputation: 418
  • View blog
  • Posts: 9,532
  • Joined: 26-December 05

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

Posted 15 August 2008 - 10:58 AM

You can find a walkthrough here that describes how to do it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1