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 bindingManagerBase 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 bindingManagerBase 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 4 1715
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 bindingManagerBase 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 bindingManagerBase 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.
I've tried selectedIndex and selectedValue. It appears that these fire
before the bindingManagerBase gets updated (eg. the cursor moves). So now i
have used the
Private Sub bmb_CurrentChanged(ByVal sender As Object, ByVal e As
System.EventArgs) Handles bmb.CurrentChanged
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**************@TK2MSFTNGP10.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 bindingManagerBase 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 bindingManagerBase 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.
Hi Jesse,
Did you use this already before the place you need it?
\\\
DirectCast(BindingContext(ds.Tables(0)), CurrencyManager).EndCurrentEdit()
///
I hope this helps?
Cor I've tried selectedIndex and selectedValue. It appears that these fire before the bindingManagerBase gets updated (eg. the cursor moves). So now
i have used the Private Sub bmb_CurrentChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles bmb.CurrentChanged
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.
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 =--- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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. ...
|
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?
...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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,...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |