I am trying to create a form using databinding to a dataset and one of the
fields requires the user to select from a list of optons. Any hints on how
to do this other than bind the field to a label or text box to display the
current field value then add a combo box with the list of items to chose from?
--
Dennis in Houston 5 1814
I'm sorry but I don't quite understand the question. Could you reword
it please, and I will do my best to answer it.
(for standard binding to a combobox, known as "complex binding" for
some bizarre reason...)
mycombo.datasou rce = myDataTable ' or, myDataset.Table s(0) or
myDataset.Table s("tablename" )
mycombo.Display Member = "DisplayFie ld" ' whichever column you want
to display in the combobox
mycombo.ValueMe mber = "IDField" ' whichever column is the
uniquely identifying column in a row.
Dennis,
As Steven told, give us some more information, from this I cannot get only
gues.
As we are talking about databinding, than the datasource is important
(bindingsource whatever).
As well the properties we want to bind to. For about what you are talking is
probably the dataview your first friend.
Cor
"Dennis" <De****@discuss ions.microsoft. com> schreef in bericht
news:88******** *************** ***********@mic rosoft.com... I am trying to create a form using databinding to a dataset and one of the fields requires the user to select from a list of optons. Any hints on how to do this other than bind the field to a label or text box to display the current field value then add a combo box with the list of items to chose from?
-- Dennis in Houston
I have a form that is bound to a dataset. On it, there are some text box
controls and also a combo box that I want to display the current dataset row
fields and let the user edit then save to the current dataset row being
displayed.
For the combo box, I want to display the current value of the field in the
current DataSet Row and allow the user to change it by selecting a new value
from a drop down list. I can add the allowable values to the combobox but
can't seem to get the combobox to show the current field value using
databinding.
--
Dennis in Houston
"Cor Ligthert [MVP]" wrote: Dennis,
As Steven told, give us some more information, from this I cannot get only gues.
As we are talking about databinding, than the datasource is important (bindingsource whatever).
As well the properties we want to bind to. For about what you are talking is probably the dataview your first friend.
Cor
"Dennis" <De****@discuss ions.microsoft. com> schreef in bericht news:88******** *************** ***********@mic rosoft.com...I am trying to create a form using databinding to a dataset and one of the fields requires the user to select from a list of optons. Any hints on how to do this other than bind the field to a label or text box to display the current field value then add a combo box with the list of items to chose from?
-- Dennis in Houston
Dennis,
This sample is with a datagrid, (mainly to show the different ways of
databinding) however it is mainly the same. As soon as you have databind
something it is sticked to the current row.
If you want to let them work independent, than you have to create seperate
dataviews. http://www.vb-tips.com/default.aspx?...f-587f730fa118
A problem is that using the combobox textbox for operations seems for me one
chain of bugs.
I reported lately one for 2005.
Also I have posted in past those in different newsgroups to see a reaction.
I got the idea than the Combobox problems are a plague I have never got any
reaction.
However, I hope this helps, and otherwise reply.
Cor
"Dennis" <De****@discuss ions.microsoft. com> schreef in bericht
news:44******** *************** ***********@mic rosoft.com... I have a form that is bound to a dataset. On it, there are some text box controls and also a combo box that I want to display the current dataset row fields and let the user edit then save to the current dataset row being displayed.
For the combo box, I want to display the current value of the field in the current DataSet Row and allow the user to change it by selecting a new value from a drop down list. I can add the allowable values to the combobox but can't seem to get the combobox to show the current field value using databinding.
-- Dennis in Houston
"Cor Ligthert [MVP]" wrote:
Dennis,
As Steven told, give us some more information, from this I cannot get only gues.
As we are talking about databinding, than the datasource is important (bindingsource whatever).
As well the properties we want to bind to. For about what you are talking is probably the dataview your first friend.
Cor
"Dennis" <De****@discuss ions.microsoft. com> schreef in bericht news:88******** *************** ***********@mic rosoft.com... >I am trying to create a form using databinding to a dataset and one of >the > fields requires the user to select from a list of optons. Any hints on > how > to do this other than bind the field to a label or text box to display > the > current field value then add a combo box with the list of items to > chose > from? > > -- > Dennis in Houston
Thanks Cor. I suspected that it wasn't that easy to do with a dataset.
--
Dennis in Houston
"Cor Ligthert [MVP]" wrote: Dennis,
This sample is with a datagrid, (mainly to show the different ways of databinding) however it is mainly the same. As soon as you have databind something it is sticked to the current row. If you want to let them work independent, than you have to create seperate dataviews.
http://www.vb-tips.com/default.aspx?...f-587f730fa118
A problem is that using the combobox textbox for operations seems for me one chain of bugs. I reported lately one for 2005.
Also I have posted in past those in different newsgroups to see a reaction. I got the idea than the Combobox problems are a plague I have never got any reaction.
However, I hope this helps, and otherwise reply.
Cor "Dennis" <De****@discuss ions.microsoft. com> schreef in bericht news:44******** *************** ***********@mic rosoft.com...I have a form that is bound to a dataset. On it, there are some text box controls and also a combo box that I want to display the current dataset row fields and let the user edit then save to the current dataset row being displayed.
For the combo box, I want to display the current value of the field in the current DataSet Row and allow the user to change it by selecting a new value from a drop down list. I can add the allowable values to the combobox but can't seem to get the combobox to show the current field value using databinding.
-- Dennis in Houston
"Cor Ligthert [MVP]" wrote:
Dennis,
As Steven told, give us some more information, from this I cannot get only gues.
As we are talking about databinding, than the datasource is important (bindingsource whatever).
As well the properties we want to bind to. For about what you are talking is probably the dataview your first friend.
Cor
"Dennis" <De****@discuss ions.microsoft. com> schreef in bericht news:88******** *************** ***********@mic rosoft.com... >I am trying to create a form using databinding to a dataset and one of >the > fields requires the user to select from a list of optons. Any hints on > how > to do this other than bind the field to a label or text box to display > the > current field value then add a combo box with the list of items to > chose > from? > > -- > Dennis in Houston This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: FZ |
last post by:
Hi Gang,
I was wondering if a generous person might be able to walk me
through what I believe is a pretty simple task. I actually have
significant Access experience, but I haven't done it in about 3 years
and I'm more rusty than I thought I was. Anyway, in a nutshell:
The scenario: 2 combo boxes (comboLastName and comboStateorProvince)...
|
by: Krisa |
last post by:
Hello all,
I just discovered something (stop me if you've heard this before....) that
was causing me a significant performance hit when opening a form with
subforms.
To speed up loading the form, I set the rowsources of its, and its
subforms', combo boxes in the "Enter" events of the combo boxes. That's the
standard trick for not...
|
by: Gary Shell |
last post by:
I have a pair of combo boxes on a form. Both have their SelectedValue
property bound to a column on a table called "Input_Output". One column is
called "Class" and the second is called "SubClass". Each combobox has its
datasource, displaymember and SelectedValue member bound to separate tables
thru individual datatsets thru individual data...
|
by: Tom |
last post by:
I have some very strange issues with combo boxes on a tab control.
Here's the scenario: I have a Windows Forms form that has a tab control
on it, with two (2) tabs. Tab 2 happens to have a number of text and
combo boxes on it (in panels on the tab). These combos were originally
simple drop down lists - i.e. you had to select from the list and...
|
by: Dave |
last post by:
I wasn't sure how to search for previous posts about this, it felt
real specific. Ok so here's the database & problem:
I have 4 combo boxes: cboServer, cboPolicy, cboDB, and
cboApplication. The idea behind the database is for a user to search/
select desired information in any kind of combination between the 4
combo boxes. Then the user...
| |
by: Dave |
last post by:
I want to put the information that the user selects in my combo boxes
into a subform that lies on the same form as the combo boxes.
Thanks for your help already,
Dave
|
by: Dave |
last post by:
Hello all,
First I'd like to apologize...This post was meant to be put in my
previous post, but I tried many times without success to reply within
my previous post. Now here goes...
I have a main form (RD Form) with 4 combo boxes (i.e. cbo1, cbo2, etc)
and a subdatasheet (the subform...let's call it subInfo) below the
combo
boxes on...
|
by: Dave |
last post by:
I have 3 tables of information feeding into 4 combo boxes on my main
form (DR Form). I have as many list boxes (acting as text boxes) as
there are fields in each one of the 3 tables. Once selecting from the
combo box, I have all the combo boxes, using afterupdate, populating
their respective list boxes. These text boxes are directly...
|
by: someshbakliwal |
last post by:
Hi,
I have created some autopopulating combo boxes on my HTML page (script- Javascript). so these combo boxes are autopopulated with choices made in previous combo boxes.
The problem I am facing is that the combo boxes resize according to the length of the autopulating string. For example if the combo box autopopulates with option 'United States...
|
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...
|
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. ...
| |
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
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...
|
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...
|
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 we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |