473,799 Members | 3,276 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

BindingManagerB ase object

I will get this eventually,

I have a combobox on a form which is bound to a dataset and displays correct
values in the list. When i select a value from the list, i check to see
what is the current row in a bindingManagerB ase object is in the
selectedValue event handler code. I print out, on labels the following
values:

bmb.Count and bmb.Position where bmb is the bindingManagerB ase object.

The count is correct, there are 71 items in the list.
The position however, does not change, even though i select different items
in the comboBox.

What am i missing?

Thanks guys and girrls,
Jesse
Nov 20 '05 #1
4 1743
Cor
Hi Jesse,

I am curious, why do you not use the selectedindex from the combobox?

Cor

I will get this eventually,

I have a combobox on a form which is bound to a dataset and displays correct values in the list. When i select a value from the list, i check to see
what is the current row in a bindingManagerB ase object is in the
selectedValue event handler code. I print out, on labels the following
values:

bmb.Count and bmb.Position where bmb is the bindingManagerB ase object.

The count is correct, there are 71 items in the list.
The position however, does not change, even though i select different items in the comboBox.

Nov 20 '05 #2
I've tried selectedIndex and selectedValue. It appears that these fire
before the bindingManagerB ase gets updated (eg. the cursor moves). So now i
have used the
Private Sub bmb_CurrentChan ged(ByVal sender As Object, ByVal e As
System.EventArg s) Handles bmb.CurrentChan ged

event. It occurs after the change has occurred. Now i have a problem where
some of the items, when i select them in the comboBox update other fields,
but some don't. I can't figure out why.

Jesse

"Cor" <no*@non.com> wrote in message
news:e8******** ******@TK2MSFTN GP10.phx.gbl...
Hi Jesse,

I am curious, why do you not use the selectedindex from the combobox?

Cor

I will get this eventually,

I have a combobox on a form which is bound to a dataset and displays

correct
values in the list. When i select a value from the list, i check to see
what is the current row in a bindingManagerB ase object is in the
selectedValue event handler code. I print out, on labels the following
values:

bmb.Count and bmb.Position where bmb is the bindingManagerB ase object.

The count is correct, there are 71 items in the list.
The position however, does not change, even though i select different

items
in the comboBox.


Nov 20 '05 #3
Cor
Hi Jesse,

Did you use this already before the place you need it?
\\\
DirectCast(Bind ingContext(ds.T ables(0)), CurrencyManager ).EndCurrentEdi t()
///
I hope this helps?

Cor
I've tried selectedIndex and selectedValue. It appears that these fire
before the bindingManagerB ase gets updated (eg. the cursor moves). So now i have used the
Private Sub bmb_CurrentChan ged(ByVal sender As Object, ByVal e As
System.EventArg s) Handles bmb.CurrentChan ged

event. It occurs after the change has occurred. Now i have a problem where some of the items, when i select them in the comboBox update other fields,
but some don't. I can't figure out why.

Nov 20 '05 #4
Hi Jesse

Are you using 1.1 or 1.0? I have had a similar problem -
currentchanged works well with 1.0 but not with 1.1.

Stephen

----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
3229
by: Bijay Kumar | last post by:
Hi Guys, I was going through the source code of Object.cs in rotor. What I found is Equals() implemented as follows: public extern virtual bool Equals(Object obj); What I don't understand is:
0
4632
by: Bijay Kumar | last post by:
Hi Guys, I was going through the source code of Object class (Object.cs in rotor). What I found is Equals() implemented as follows: public extern virtual bool Equals(Object obj); What I don't understand is:
4
6276
by: Christopher Weaver | last post by:
How do I retrieve the position value after successfully finding the row that I'm looking for? I need to set BindingManagerBase.Position so that all of the controls on the form are synchronized. Is there another way of moving to a particular record within a dataset given the value of the key?
4
1954
by: Joe | last post by:
can someone help me with this code (1) daNewEmployer.Fill(DsNewEmployer) (2) daNewEmployee.Fill(DsNewEmployer) (3)bmbEmployer = BindingContext(DsNewEmployer, "Employer") I am trying to fill a the bindingmanagerbase with two tables in the third line of code. However, it only takes two arguments, the dataset "DsNewEmployer" and the table "Employer". I need to add the "Employee" table to
0
1073
by: johnb41 | last post by:
I have a simple form with textboxes displaying records from a dataset. To Add a record, i simply do this (successfully): ' bmb variable holds the me.bindingcontext(dataset, "table"), which returns a BindingManagerBase object Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
1
1450
by: dbuchanan52 | last post by:
My newly added row will not become current. I have several textboxes bound to a DataGrid1 and a couple of buttons including 'btnNewRecord'. The datagrid is bound to a table in a dataset. What happen is that btnNewRecord adds a new row to DataGrid1 as expected, however the active row does not move to the newly added row! What am I missing?
26
5694
by: yb | last post by:
Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized several parts of the DOM, but this does not include the window object. Thank you
4
1385
by: Dave | last post by:
I have a BindingManagerBase which is used witha stored precudure. When I try to execute the statement: this.BindingContext I get the error: System.ArgumentException was unhandled. Message="Child list for field table1 cannot be created." L. A. Jones
3
2775
by: User1014 | last post by:
A global variable is really just a property of the "Global Object", so what does that make a function defined in the global context? A method of the Global Object? http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Guide:Defining_Functions doesn't actually give any insight.
0
10484
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10251
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10228
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10027
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4141
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.