Results 1 to 3 of 3

Thread: problem with binding ADO.NET

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2003
    Location
    michigan
    Posts
    70

    problem with binding ADO.NET

    Hi,
    I got two tables 1) Contacts 2) Customer
    The contacts has a primary key contactID(AutoIncrement) and all his personal information. The Customer is a contact too but with separate additional fields in the table. I join the relationship using tblCOntactsID = tblCustomeriD. Now my question is I am trying to develop a windows form automatically using vS.NET
    I am binding all the fields from both the tables to the windows form fields. Is there a way where I can just bind and perform all the add, delete, Update operations without writing any code in the program. If I press add button all the fields shud be added to contacts with contactID incremented automatically and also simulataneously that information should go in to the customer table. Is there a way to do this using dataadapter, dataset tools. I can do this hard coding by writing the code for the add event. But can I do it automatically after binding. Your help will be appreciated.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Um... use the CommandBuilder object to write your SQL statements instead?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2003
    Location
    michigan
    Posts
    70
    Thanx for ur reply mendhak. I will try to use command builder object.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width