CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2000
    Location
    Brazil
    Posts
    28

    How to avoid using DataControl or Adodc?

    Hi,

    I have heard some developers saying to avoid using bound controls (attached to a database) like DataControl, Grid and others.

    How can I create a form to see many records at the same time and allowing me to make changes without using a Grid with Adodc?

    Some ideas of how to replace these bounded controls?

    Thanks in advance...

    Michel Jr.


    Some good Activex controls at my HP:
    http://www.geocities.com/michel_junior_hp/index.html

  2. #2
    Join Date
    May 2001
    Posts
    5

    Re: How to avoid using DataControl or Adodc?

    data controls are great... I have a program with 25000+ lines of code which I wrote and it's all based on data bound controls.

    why do think microsoft made them... for them not to be used?


  3. #3
    Join Date
    Feb 2001
    Location
    Stamford CT USA
    Posts
    2,167

    Re: How to avoid using DataControl or Adodc?

    Well, if you're not comfortable in using the DATA CONTROL, then just use regular control to display the information. You can still connect to a database connection manually by using ADO component library and filling up the controls by yourself.

    If you do not really know on how to do so, post again to this thread or just search for ADO or DAO or ODBC in this forum, you'll get the answer that you need.

    -Cool Bizs

    Good Luck,
    -Cool Bizs

  4. #4
    Join Date
    May 2001
    Posts
    16

    Re: How to avoid using DataControl or Adodc?

    Yes, but the problem is that these controls keep open connections to the database. If you have multiple datagrids with ADODC's in your program, you can have multiple database connections open at the same time. This caused a big problem for my client, as a single user can use up all the connections to the database! We had to change our style to use TrueDBGrid (a third-party control), and no bound controls.

    HTH!

    katlaw

  5. #5
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: How to avoid using DataControl or Adodc?

    I prefer not to use ADODC and bound control. In the beginning it is little bit easier to get data to the grid, but later you lose a lot of flexibility. I prefer to use MSFlexGrid and enter recordset there. From my point of view it is much more flexible approach to the task.

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

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