473,748 Members | 7,377 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ComboBox SelectedValueCh anged won't fire

I have two comboboxes databound at run time. I can make a selection
on first one to filter the second one. This works good with applying
DataView RowFilter on second combobox. But at that moment, I need to
have the second combobox to fire off SelectedValueCh anged event
because the selection has been changed (most likely the top item after
filter applied). This won't fire currently. I can, however, make
selection to the combobox manually then it fires off ok. Is there a
property I can set to set off the event or do I need to find another
event? DataView is applying filter as I expected but am I wrong to
assume that the event should be fire off after filter has been
applied? TIA.

Aug 24 '07 #1
3 3972
This questions would be better suited for a different group, try:

http://groups.google.com/group/DotNetDevelopment?hl=en

Aug 24 '07 #2
This can be the problem if you have set your drop down style as "DropDownLi st".
Instead change it to "DropDown".
I hope this will solve it.
--
Lalit Bhesdadiya

"unknown" wrote:
>
Aug 27 '07 #3
This can be the problem if you have set your drop down style as "DropDownLi st".
Instead change it to "DropDown".
I hope this will solve it.
--
Lalit Bhesdadiya
Lalit,
I tried setting it to DropDown instead of DropDownList. The event
still doesn't fire off. I did, however, came up with a workaround.
I'm simply calling my logic just after filter applied. I'm still
curious how this can work. Thank you for your suggestion. Sorry for
the late post.

Aug 29 '07 #4

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

Similar topics

9
56524
by: Steffen Laser | last post by:
Hi group, I have a problem that I already have posted to the german C# newsgroup. Since nobody could help me there, I'd like to try it here again: I set the selected item of a combobox like this: myCombo.SelectedItem = 3; But after that the ComboBox displays only the first entry of the list. When I add the line
1
2314
by: Norm Katz | last post by:
When you use a bound combobox and you set its dropdown style to "dropdown" that allows you to enter text in the edit box. But if you enter anything other than a value in the current bound items collection, the .text property does not update. Furthermore, you can't easily trap an event to examine the new value if your program assigns it programmatically as opposed to someone typing it in and tabbing away from it. That is, TextChanged does...
2
9176
by: Kevin Hodgson | last post by:
I have a DataBound ComboBox, which has a text value as the Value property, and the UniqueID for that value is bound to the Combobox.Tag property. When a user makes a new selection in the combobox, I need to run a SQL Query with the UniqueID of the new value they are picking. The .SelectedIndexChanged and .SelectedValueChanged events give me the .Tag value BEFORE the new selection is made. I'm getting the value for the previous value,...
1
2019
by: Larry Woods | last post by:
I have a combobox that is populated with a list of names. When a name is selected I want to populate a datagrid with name information. I have my master-detail defined in my dataset and it works fine if I use a datagrid for the master, instead of a combobox. But the combobox won't cause the repopulation of the datagrid with the appropriate data. What's the trick? TIA, Larry Woods cross-posted on ...dotnet.languages.vb.controls
1
1608
by: Kevin Hodgson | last post by:
I have a DataBound ComboBox, which has a text value as the Value property, and the UniqueID for that value is bound to the Combobox.Tag property. When a user makes a new selection in the combobox, I need to run a SQL Query with the UniqueID of the new value they are picking. The .SelectedIndexChanged and .SelectedValueChanged events give me the .Tag value BEFORE the new selection is made. I'm getting the value for the previous value,...
4
4619
by: jon f kaminsky | last post by:
Hi- I've seen this problem discussed a jillion times but I cannot seem to implement any advice that makes it work. I am porting a large project from VB6 to .NET. The issue is using the combo box bound to a table as a lookup, drawing values from another table to populate the available selections. This all worked fine in VB6. I have distilled the problem down to a simple form drawing data from the Northwind database for a representative...
0
2017
by: Frnak McKenney | last post by:
Can I use a bound ComboBox for both browsing and editing? I'm working on a small, standalone database application using Visual C#.NET 2003 and an Access data file. In order to keep the number of different screens down to a minimum, I'm trying to use the same Windows Forms for both browsing and for updating. This works fine for TextBoxes, but I'm running into problems with my DropDownLists (ComboBoxes).
0
1394
by: HDI | last post by:
Hi, I'm using vb.net express 2005 and I've got a project where I use a datagridview with a combobox in the first column. Depending on the value the user selects I have to set values of other cells. The problem is that I get the selected value when the datagridview isn't in edit mode. First I have to select another cell.
0
1267
by: Murali | last post by:
Hi, i have a datagridview with one column set as combobox. the combobox is bound to a dataset. now i want to able to type in the combobox. i did this with changing the style of the combo to drop down. but when enter the data and pressing tab the text disappears from the cell. can anybody help me with this. this is my code
0
8989
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8828
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9537
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
9367
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
9319
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
9243
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...
1
6795
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4599
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...
3
2213
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.