Results 1 to 7 of 7

Thread: Data Binding vs Manual Population?

  1. #1

    Thread Starter
    Addicted Member CoMMiE's Avatar
    Join Date
    Jul 2000
    Location
    Malaysia, Kuala Lumpur
    Posts
    179

    Data Binding vs Manual Population?

    Hi
    Can anyone tell me whats the pros and cons of using databinding and manual population of data from a database?

    In what situation do we use databindings or manual population?


    Thanks

  2. #2
    Addicted Member
    Join Date
    Mar 2001
    Location
    Devon, UK
    Posts
    181
    I feel you should always populate controls manually as this way you learn how the control works properly and it allows you a lot more flexibility.
    Wind and waves resolves all problems.

  3. #3
    Fanatic Member Mr.No's Avatar
    Join Date
    Sep 2002
    Location
    Mauritius
    Posts
    651
    I would like to bring this discussion back again.
    I think that VB6 programmers have stayed away from the ADO data control and bound controls because of some performance reasons. I am making the move towards VB.NET and have the feeling that bound controls are not so evil after all, specially when the VS.NET environment generates quite a lot of code that are available for customisation. I would like to have some inputs from those who are already using VB.NET in production and whether bound controls are the right choice?

    Thanks.
    Using VB.NET 2003/.NET 1.1/C# 2.0
    http://del.icio.us/rajoo
    Blow your mind, smoke gunpowder
    Ashes to ashes, dust to dust
    If God won't have you, the devil will. - Author unknown
    Don't follow me, I'm lost too ...

  4. #4
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    Hi!

    I am using alot of databinding in different situations, and I am using manual population as well. Both have their advantages an disadvantages.

    Advantages of the databinding is the ease of use (once you get a hang of it that is), one disadvantage is as cim3 says, the lack of 100% of control in all situation. But if you use a specific predefined strategy that is seldom a problem.

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I still mainly use methods other than databinding but do agree that binding is no longer evil in .NET. Most of my binding now is actually to my own custom classes instead of the data directly which I think gives me the right amount of control that I need. I also plan on looking at binding further in .NET even though in VB6 I almost never used binding.

  6. #6
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    Just to warn you guys, there are a couple of traps deeper down into databinding, but don't give up if you feel something doesn't work. I have managed to get around almost every obsticle I have had to face, so If you have problems and question along the way, maybe I can answer some of them.

    Just post and I'll do what I can.

  7. #7
    Fanatic Member Mr.No's Avatar
    Join Date
    Sep 2002
    Location
    Mauritius
    Posts
    651
    Ednees, Athley

    Thanks for your input.


    Using VB.NET 2003/.NET 1.1/C# 2.0
    http://del.icio.us/rajoo
    Blow your mind, smoke gunpowder
    Ashes to ashes, dust to dust
    If God won't have you, the devil will. - Author unknown
    Don't follow me, I'm lost too ...

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