Hi,
I have a combo box that I want to populate, based on the selection of
another combo box.
So when combo box A is selected, combo box B is populated with related values.
I have this all working fine, except for on the forms loading. I have
combobox B being populated after combobox A_SelectedIndexChanged event fires.
However, on the form load, when I try to retrieve the value from
"selectedvalue" , field, it is giving me "System.Data.DataRowView". that is
the field isnt populated.
I dont understand why there is no value if the selectedindex changed event
is firing?
Can someone advise how I should be handling this. Even when the combo box
isnt yet populated, the selected index is showing as zero?.
thanks 2 1490
Ausclad,
This are probably very old issues with the combobox.
There are more solutions.
You protect the event with a boolean by that you set to true in the load
event or you set the handlers dynamicly at the end of that load event.
By instance the first is than in the event
\\\\
comboBoxIndexChangeEvent
if swLoaded then
'do what has to be done in this event
end if
end sub
///
I hope this gives an idea,
Cor
"Ausclad" <Au*****@discussions.microsoft.comschreef in bericht
news:1E**********************************@microsof t.com...
Hi,
I have a combo box that I want to populate, based on the selection of
another combo box.
So when combo box A is selected, combo box B is populated with related
values.
I have this all working fine, except for on the forms loading. I have
combobox B being populated after combobox A_SelectedIndexChanged event
fires.
However, on the form load, when I try to retrieve the value from
"selectedvalue" , field, it is giving me "System.Data.DataRowView". that
is
the field isnt populated.
I dont understand why there is no value if the selectedindex changed event
is firing?
Can someone advise how I should be handling this. Even when the combo box
isnt yet populated, the selected index is showing as zero?.
thanks
Thanks.
I also found this website that shed some light on the problem. http://www.codeproject.com/csharp/sc...select=1453805
basically, I moved the order in which I bound the object then added a
boolean to check that I had finished the bind.
thanks
"Cor Ligthert [MVP]" wrote:
Ausclad,
This are probably very old issues with the combobox.
There are more solutions.
You protect the event with a boolean by that you set to true in the load
event or you set the handlers dynamicly at the end of that load event.
By instance the first is than in the event
\\\\
comboBoxIndexChangeEvent
if swLoaded then
'do what has to be done in this event
end if
end sub
///
I hope this gives an idea,
Cor
"Ausclad" <Au*****@discussions.microsoft.comschreef in bericht
news:1E**********************************@microsof t.com...
Hi,
I have a combo box that I want to populate, based on the selection of
another combo box.
So when combo box A is selected, combo box B is populated with related
values.
I have this all working fine, except for on the forms loading. I have
combobox B being populated after combobox A_SelectedIndexChanged event
fires.
However, on the form load, when I try to retrieve the value from
"selectedvalue" , field, it is giving me "System.Data.DataRowView". that
is
the field isnt populated.
I dont understand why there is no value if the selectedindex changed event
is firing?
Can someone advise how I should be handling this. Even when the combo box
isnt yet populated, the selected index is showing as zero?.
thanks
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Heather |
last post by:
Hi
I am desparately looking for advice in relation to storing the results
after selecting items from two combo boxes on a Referral form. The
first combo box 'ctl Type' displays a full list of...
|
by: Giulio |
last post by:
Hello,
I have a continuous form with a combo box inside. From the combo box I can
pick some values which, by the "after-update" event, change some other combo
box values determined by a query....
|
by: Edwinah63 |
last post by:
Hi everyone,
Please let there be someone out there who can help.
I have two BOUND combo boxes on a continuous form, the second being
dependent on the first. I have no problem getting the...
|
by: jim |
last post by:
I have created a Table that has 13 fields and 2 Primary Keys, e.g. 60 1, 60
2, ... 60 28,
61 1, 61 2, ... 61 28, etc...
I want to create a Form where I can input the Primary Key values to query...
|
by: Arun |
last post by:
Hi Group,
I was trying to link a combo box with a list control and having some
trouble with that. Could anyone please help me with that. Here's the
example of the scenario.
Combo Box ;-...
|
by: Rabbit |
last post by:
Cascading Combo/List Boxes
This tutorial is to guide you in the creation of Cascading combo/list boxes. That is when you have multiple combo/list boxes where the selection of an option in one...
|
by: AllusiveKitten |
last post by:
Hi
I am hoping someone can help me, I have a form with two combo boxes in it.... The first combo box gets its values from a table via an SQL query in the combo box properties. The second combo...
|
by: tremonti92 |
last post by:
Hello..
I have a table with a field name called 'Professions'. There are many same multiple values for this field, for example, there are many records with the value 'Doctor' under this field.
...
|
by: truptivk |
last post by:
Hello all,
I have a situation and I'd appreciate it if any of you could help me. I am not sure if this is js or html but here goes. I have a main combo box (mcb) which I'm displaying some values....
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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,...
| |