CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2007
    Posts
    149

    databindings of winform in ADO.Net

    Hi, I have a form and i am new to ADO.Net and want to do some insert operation on my form so i was playing around with the windows form. I found one way which is

    I first clicked the form and to properties and then clicked DataBindings Clicked Advance. Clicked the binding dropdown box. Then clicked the Add Project Data Source. Selected the database and server and conn was successfull It created some dataset and connection string. Then i clicked the tables and selected the table which i want for this form.

    Now then I right click on each fields textboxes go to properties and then clicked DataBindings Clicked Advance. Clicked the binding dropdown box and from that DataSet and table i selected each column name and binded to appropriate field.

    What does that all mean which i did and what i can do with that?

    Any tutorial on the above procedure I did so i can know exactly whats going on?

  2. #2
    Join Date
    Mar 2006
    Location
    Craiova, Romania
    Posts
    439

    Re: databindings of winform in ADO.Net

    Quote Originally Posted by shah123
    Hi, I have a form and i am new to ADO.Net and want to do some insert operation on my form so i was playing around with the windows form. I found one way which is

    I first clicked the form and to properties and then clicked DataBindings Clicked Advance. Clicked the binding dropdown box. Then clicked the Add Project Data Source. Selected the database and server and conn was successfull It created some dataset and connection string. Then i clicked the tables and selected the table which i want for this form.

    Now then I right click on each fields textboxes go to properties and then clicked DataBindings Clicked Advance. Clicked the binding dropdown box and from that DataSet and table i selected each column name and binded to appropriate field.

    What does that all mean which i did and what i can do with that?

    Any tutorial on the above procedure I did so i can know exactly whats going on?
    First you should know to form some simple sql queries,then you should know how to use ADO.NET to send the queries to the database. After those two you can learn what is with this data binding and how can you display the dataset results with it. Anyway you can try for beginning some simple data binding with arrays to see what is all about.
    Link1, link2
    Bogdan

    If someone helped you then please Rate his post and mark the thread as Resolved
    Please improve your messages appearance by using tags [ code] Place your code here [ /code]

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

Featured