Results 1 to 11 of 11

Thread: Binding problems

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2002
    Posts
    96

    Binding problems

    OK, I am using the BindingManagerBase to bind textboxes, comboboxes, checkboxes to a dataset. I would like to know if there is a better way because I am having so many problems. In VB6 I used an Ado control for the binding and the AddNew, Delete, Save, Cancel functions worked fine. These functions suck with BMB.

    Couple of my problems:
    1. AddNew function does not clear controls because of some of the binding methods with the comboboxes and checkboxes and I think because of this:
    AddHandler b.Format, AddressOf DecimalToCurrencyString
    AddHandler b.Parse, AddressOf CurrencyStringToDecimal
    Any ideas why? Is there a fix for this?

    2. If I insert a record to the table what is the best way to update the BindingManagerBase object?
    I tried clearing and filling dataset but then what? This seems to cause errors:
    dsTemp.Clear()
    daTemp.Fill(dsTemp, "Temp")
    bmdTemp.Position = bmbTemp.Count

  2. #2
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251
    You could just learn a bit of SQL and use a boundless dataset to accomplish everything.

    I've never been a big fan of databinding controls, especially the ones in VB6. They generally commit when I don't want them to.
    ~Ryan





    Have I helped you? Please Rate my posts.

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2002
    Posts
    96
    What kind of response is that? Do I look like an idiot? Okay, don't answer that. I know SQL. I am trying to learn ADO.Net.
    I want bound controls to a dataset with controls on form to scroll through the dataset. I want to be able to add new records, delete, cancel and update using the BindingManagerBase.

  4. #4
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by rdove
    You could just learn a bit of SQL and use a boundless dataset to accomplish everything.

    I've never been a big fan of databinding controls, especially the ones in VB6. They generally commit when I don't want them to.
    I completely agree with you . I hate binding too . Binding never solve problems but brings all kinds of troubles and bugs .

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Mar 2002
    Posts
    96
    Hey, I have an idea! Why don't you try to answer the question instead of suggesting nonsense?? Oh, I guess because you have no friggin idea. Seriously, where's the expert forum?

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    lol ...I suggest what rdove said .

    Good Forums , you can try posting here :
    http://www.dotnetforums.com/
    or
    http://www.only4gurus.com/v2/index.asp

  7. #7
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    Why dont you first dig into tutorials and books before refering to others?

    If I insert a record to the table what is the best way to update the BindingManagerBase object?
    I dont think you need to update the binding manager. You need to refresh it. I am sure the Currency Manager has Refresh method, not sure about BindingManagerBase.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

  8. #8
    Addicted Member rdove's Avatar
    Join Date
    Dec 2002
    Location
    Indianapolis
    Posts
    251
    Originally posted by jpfolin
    Oh, I guess because you have no friggin idea. Seriously, where's the expert forum?
    Thats probably about right because most people here wouldn't be caught dead using a databinding control. Therefore nobody knows how to use it.

    And the experts will tell you to steer clear just as I have.
    ~Ryan





    Have I helped you? Please Rate my posts.

  9. #9
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Post a sample project that recreates the problem and maybe we'll take a look and try to help.

  10. #10

  11. #11
    Frenzied Member Asgorath's Avatar
    Join Date
    Sep 2004
    Location
    Saturn
    Posts
    2,036
    I hate it to
    "The dark side clouds everything. Impossible to see the future is."

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