GridViewMultiComboBoxColumn: Allow User to Enter Data - vb.net

I got a very straight forward Grid connected to a DataSet. I'm doing this in VISUAL BASIC. Using Telerik Winforms Q3 2013.
Every column is a text Column, 2 of them are Multi Column Combo Boxes, attached to a distinct dataset which just brings the possible information. And is only intended for reference.
I want to let the user be able to key into these columns any text they want regardless if it's on the list or not.
I looked at this post http://www.telerik.com/help/winforms/gridview-editors-howto-allow-end-users-to-add-items-to-dropdownlisteditor.html
But this example is just too confusing and most importantly, it saves to the ref/underlining ref dataset, which is not desirable.
How can I set up the comboboxes to allow users to enter any text they want.
Thanks

The Multi Column Combo Boxes are working with items, these items are gotten from the data source of the Multi Column Combo Box. So in order to allow freely typed text, the latter should be added to the data source.

Related

Limit Combobox input based on other control on same form

I have a database in access for which I made some forms, which is going pretty well.
I only have one small issue I am running into.
I have this form on which I have several comboboxes, which get their Row source from another table. That is working fine.
But for combobox B I wanted the options limited/filtered based on the selection in combobox A. So I filled the following in the row source of combobox B:
SELECT JOBS.Numbers
FROM JOBS
WHERE CITY = Me.CITY
So there is another combobox on the same before where the CITY is picked.
Now when open combobox B it asks me to fill in the city manually and then it filters/limits the options in the way I want. However, I want this to happen automatically based on the selection in combobox A (on the same form).
I hope you can help me.
Thanks in advance.
I find this feature very useful. For example I have a form where project managers select there name from a combobox(A) then in the next box(B) select their project. B uses the criteria from the first box to only list their projects.
Specifically the project table I pull the list from has an owner field. I use the name entered into A as criteria on the Owner to pull just their projects.
On the combobox query build I input the Owner criteria like this. The query runs then with whatever data is entered into boxA.
Forms![Main]![cboOwner]
On the first combo box "After Update" event add Me.ComboboxB.Requery. That will make combo box B refresh its contents based on the current value of combo box A every time A's value is changed.

Access VBA code for copying information from a combobox and pasting into a textbox on a continuous form

Really need help with this, I have a continuous form with a combo box to choose data, each row has a different criteria and you can choose only certain items per row in the combo box drop down. (As an example I have four rows one is a cap, one is a bottle, one is a label and the last is oil to go in the bottle.)
What I need is when I have chosen something in the combo box drop down I want it to paste into a text box and stay there until another choice on the same row is made...... Currently I can make the information appear in the textbox but then when I move to another row and choose anothe item it over writes anything I have already chosen.
So an example would be I have chosen product 1, it has cap 1, bottle 1, label 1 and oil 1. In the drop down combo box I can choose only bottles to replace bottles caps to replace caps and so on. I want to choose bottle 2 in the combo box on the bottle line (Which changes all the combo boxes) I now want to save that choice in the text box on the bottle row only, then when I choose Label 2 on the label row even though it changes all the combo boxes I don't want it to overwrite the text box for the bottle row. (I'm assuming a criteria that will only change the row of the combo box you are clicking on or something like that)
hope this makes sense to every body (P.S. I don't know how to get a screen shot in here so have tried to explain to the best of my ability)
Many thanks
Justin
You have to bind the textbox to a field in the record.
As long as the textbox is unbound, it doesn't know about a record and will display the same for all records.
I'm making the assumption that you want to be able to map some product to 4 different types of caps, bottles, labels, and oil:
It seems that your problem is in your data table design, not in your comboboxes. You shouldn't need the text field at all. The problem is that your comboboxes are all based on the same table. When you select Bottle2 from one of them, it matches the rest of the comboboxes to that row. So all the others will get Label2, Cap2, etc. because they are in the same row of the table.
Make a products table call it tblProducts. The fields ID (autonumber), product_name, label_FK, cap_FK, Bottle_FK, and oil_FK should be in it. Those FK stand for Foreign key and should be a number type. The product name can be text.
Create the tblLabel, tblCap, etc. with an ID, and a description.
In your relationships you need to map the tblLable.ID to the tblProducts.Label_FK field. Do this for all 4 type. Then you can re-create the form based on the products table. Whatever the form gives you for the way to control the label_FK, cap_FK, etc. fields you can convert it to a combobox by right click -> change to...
Finally, you may need to update the number of columns of the comboboxes in order to see the description also.
EDIT: More lasting information -
Doing some solid research on data table design will pay huge dividends in design time. Starting with the Database Design Basics page from Microsoft will help as a decent 30 minute intro and should help clear some things up for you.

Access 2007 - drop down box in a Report

I need to create a drop-down box so that an employee can select a pre-set reason in the "RE:" field of a Report. There are only two selections that need to be in the box: "personal events" and "lack of adequate notice".
The report itself is already made and there are a number of fields that link back to the database - name, address, specific dates, etc that are already in the report. I've figured out how to make the drop-down box using the combo box function in a form but is there any way I can merge the combo box into the report?
I'm a beginner, by the way so I'm still figuring things out.
Currently your report sits on a query (query get relevant data from the table)
Steps to follow:-
Change the table by adding a column with the two options you just
mentioned above
Add combobox to Form with items as the two options
Adjust your query to use these options as a criteria to change
results returned by the query
Show the results in the report as you are showing right now.
If you have a code already, please post that snippet. So we can help you accordingly.
Some reference for you to get ideas
BUT I HAVE A DOUBT, ARE YOU TRYING TO SAY YOU WANT TO SWTICH BETWEEN TWO REPORTS BASED ON THE USER CHOICE SELECTED IN COMBOBOX?

Updatable Label text according to combobox filled with an Acces database

Hi I'm using Visual Basic 2008 Express Edition, so I have a combobox that gets filled with items from a data base made with Microsoft Acces, the combobox is filled with the values stored in a column from a table in de database so the user can select an "option" from it, I want to add labels that show the values for the corresponding row of that column. I used the Data Source panel to drag and drop the labels corresponding to the values that I want and it works it show the value that I want when I compile the application (at least I think it does, it could be that it's only selecting the first entry) the problem is that when I select a diferent entry on the combobox the labels don't refresh with the new values. How can I do that?
edit
Ok soo I guess my real question is how does Visual Basic Populates de combobox and gets the value of the other Acces DB entrys to change the .text value of the labels? And I mean the actual code that does that.
See if this helps at all
Put some code in the on_click event of the combo box to change the label captions appropriately.
Ok I figured it out, apereantly Visual Creates new data sources each time you drag and drop an item from the Data Sources Panel so all you have to do is make sure that VB is using the same data source used in the combo boxes and the labels so they will update automatically when you choose an option from the combo box, I did it by finding the proper elements in the Form1.Designer.vb file of my project and editing 'DataBindings.Add' property of the labels.

ms-access the ability to enter multiple values into a textbox on a form

i have a textbox on a form and i would like the user to be able to choose from different values but also be able to enter their own values, how do i do this?
i would like to clarify that the user should be able to enter multiple values into the same textbox
I suggest that you don't. A subform to a table of values related to the main table would seem to be the way to go. You can make data entry for the field a combo that is not limited to list. Often a link back to the sub-table will suit in such a case.