|
-
May 23rd, 2003, 02:25 PM
#1
Thread Starter
Lively Member
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
-
May 23rd, 2003, 10:49 PM
#2
Addicted Member
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.
-
May 24th, 2003, 03:58 PM
#3
Thread Starter
Lively Member
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.
-
May 24th, 2003, 04:10 PM
#4
Sleep mode
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 .
-
May 24th, 2003, 04:13 PM
#5
Thread Starter
Lively Member
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?
-
May 24th, 2003, 04:22 PM
#6
Sleep mode
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
-
May 24th, 2003, 05:11 PM
#7
Frenzied Member
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
-
May 24th, 2003, 07:59 PM
#8
Addicted Member
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.
-
May 25th, 2003, 01:44 AM
#9
Post a sample project that recreates the problem and maybe we'll take a look and try to help.
-
Oct 7th, 2004, 05:42 AM
#10
Do people still hate binding?
Wpoof
-
Oct 7th, 2004, 06:12 AM
#11
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|