473,487 Members | 2,616 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How Do I load a combobox with out firing off the interactive change

Or what events can I use to return the cbo.Selectedtext value after the
cbobox is loaded

Say I wanted to display a messagebox with the selected value once the item
is selected by the user.

currently as the box is getting bound to the data the SelectedIndexChanged
event is firning off.
'Bind the data to the combobox

cboTP.DataSource = dsTP.Tables.Item("TPIDs")
cboTP.DisplayMember = "TP_NAME"
cboTP.ValueMember = "TP_CODE"
cboTP.DataBindings.Add("SelectedValue", dsTP.Tables("TPIDs"), "TP_CODE")

Thanks,
Phil
Nov 20 '05 #1
1 1246
check selectedindex event.

Rajesh Patel

"Phillip" <Phillip_Putzback AT@ Insightbb.com> wrote in message
news:uU**************@TK2MSFTNGP12.phx.gbl...
Or what events can I use to return the cbo.Selectedtext value after the
cbobox is loaded

Say I wanted to display a messagebox with the selected value once the item
is selected by the user.

currently as the box is getting bound to the data the SelectedIndexChanged
event is firning off.
'Bind the data to the combobox

cboTP.DataSource = dsTP.Tables.Item("TPIDs")
cboTP.DisplayMember = "TP_NAME"
cboTP.ValueMember = "TP_CODE"
cboTP.DataBindings.Add("SelectedValue", dsTP.Tables("TPIDs"), "TP_CODE")

Thanks,
Phil

Nov 20 '05 #2

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

Similar topics

0
2552
by: Shravan | last post by:
Hi, There is a bug in combobox selectionchangecommitted event firing, I took a combobox of style dropdownlist, I dropped down it using mouse and using Alt+Up Arrow key closed the dropdown,...
0
2079
by: Anthony | last post by:
is there a way to stop combox from firing SelectedIndexChanged events on loading when it is databinded? everytime my form loads, SelectedIndexChanged fires 4 times? using System; using...
2
2105
by: pmcguire | last post by:
I have derived a ComboBoxColumnStyle that inherits DataGridColumnStyle. It works fine except for one behavior. If the user selects a new value from the ComboBox's pulldown list on a brand new...
4
3328
by: Rob Kroese | last post by:
I've got a form with a datagrid that displays a list of items, along with several textboxes, comboboxes, etc., that display the details for the selected item. The columns in the datagrid and the...
7
8773
by: sparkle | last post by:
Hi Everybody, I'm filling a combobox from a class, which works fine on it's own. But when I insert code to fill in other controls something in the combobox fill is causing the...
2
1263
by: Manuel | last post by:
When a form loads it fires all modification events for its controls. For example, if I put a comboBox and give it some values at design time, it will fire the comboBox_Change event (or whatever it...
1
1513
by: thedotnetarchitect | last post by:
Can anyone tell me why my page load event is firing more then once? I have a asp.net 2.0 page with four user controls and it seems that the user controls are loading but the page load event seems...
5
4633
by: Joe | last post by:
Hi I am adding a class to a ComboBox - and all is fine except that I fill the combobox on the Form_Load Method and it causes the method private void comboBox2_SelectedIndexChanged(object...
2
6472
by: Ausclad | last post by:
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...
0
6967
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...
0
7137
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,...
1
6846
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...
0
7349
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...
1
4874
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...
0
3076
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...
0
1381
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 ...
1
600
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
267
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...

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.