473,404 Members | 2,195 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

ComboBox design-time DataBinding setting questions.

These setting mystify me for these reasons.

*SelectedItem* - Help says that 'SelectedItem' gets or sets the
currently selected item in the combobox.

*SelectedValue* - Help says that 'SelectedValue' gets or sets the value
of the member property specified by the ValueMember property.

*ValueMember* - Help says that the 'ValueMember' Gets or sets the
property to use as the actual value for the items in the ListControl.

The above three properties are described as results of runtime events!
What are they doing in the properties section of the ComboBox?????

How do I use them to sync a databound combobox on a form with the
current bound row on the form?

Please help me understand how to use these settings?

Thank you,
dbuchanan

Feb 1 '06 #1
3 1996
Hi,

The combobox is a control (as any listcontrol as the listbox by the way)
which can be used in more ways. One of those is that it can be used with an
array as a simple control and it can be used as a complex data bound
control. However that is not intermixed it is just one of those ways. Which
means as well that they can work completely different by instance with
events.

In the simple format you have the SelectedItem in the complex dataformat you
use by instance the SelectedValue (for the valuemember) or the SelectedText
for the displaymember.

I hope this helps a little bit,

cor
Feb 1 '06 #2
Cor,
I hope this helps a little bit,


No, it didn't address my questions.

Read my questions again.

dbuchanan

Feb 1 '06 #3
>
The above three properties are described as results of runtime events!

They are not, it are just properties as any other property from which
forever the result can be depending from another property, however it has
nothing to do with an event. As every property can they be used in an event.

What are they doing in the properties section of the ComboBox?????
See previous answer
How do I use them to sync a databound combobox on a form with the
current bound row on the form?

That is standard if they have the same datasource.

Cor
Feb 1 '06 #4

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

Similar topics

6
by: Omar | last post by:
When I try to databind my comboBox (specifically field "emplcode") to a filled dataset , the contents of the comboBox displays a bunch of "System.Data.DataRowView". I assume the amount of times...
1
by: Rachel Suddeth | last post by:
When I put a ComboBox on a form, I can enter strings through the designer to fill Items collections. I have put a ComboBox in a UserControl, and exposed the the Items collections with the same...
4
by: Keith | last post by:
Hello - this started out as a minor annoyance - and now is starting to bother me more and more - I'm hoping someone can help me. I would like to have a combobox display - NOT initially be blank...
2
by: Becker | last post by:
I have a need for a simple combobox on a form in one of my programs that represents city, state. I want to have it autocomplete as the user types. I have a table with these values (about 50k of...
8
by: Dennis D. | last post by:
Preface: I have viewed the combobox control video at Microsoft.at the movies. I want to simulate an HTML combobox as a windows application combobox with 5 to 10 selections in each box. In the...
1
by: Jochen Berger | last post by:
Moin! I've 'composed' a special UserControl I need for my current project. On this Control I put a ComboBox. The user is not allowed to access the ComboBox directly (to protect some properties),...
14
by: Chris | last post by:
I have a need to have a combo box that just has Yes & No as it options. This will be used everywhere in the application, so I thought I would make a control that inherits from combobox. I am...
2
by: TheSteph | last post by:
Hi ! I have a question : the ComboBox control have NO single border, and height is at least 1 pixel higher than TextBox. There is absolutely NO good reason for making a ComboBox looking that...
4
by: Greg (codepug | last post by:
Private Sub cboBody_KeyDown(KeyCode As Integer, SHIFT As Integer) 'Delete combobox entry if Del or Backspace key is hit. If (KeyCode = 46) Or (KeyCode = 8) Then Me.cboBody = "" End Sub I have...
2
by: Silgd1 | last post by:
Hey All; I have a form with a ComboBox. I populate the ComboBox with the following query: SELECT ., . FROM customers ORDER BY .; This query populates the comboBox with all the customer...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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...
0
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
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...
0
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...
0
agi2029
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,...
0
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...

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.