Questions tagged as 'combobox'

2
answers

How to clean the combobox without losing the items?

How to clean the combobox without losing the items? I try to clean the combobox in C #, but either it deletes all the options or the selected one, how do I clean without losing the items?     
asked by 27.03.2014 / 20:40
1
answer

Correct method to get ComboBox value populated by DataTable

What is the correct way to get the value of a ComboBox populated by a DataTable ? I'm using the following code: private void ComboBox3_SelectedIndexChanged(object sender, EventArgs e) { Consulta_cidade cidade = new Consulta...
asked by 22.07.2016 / 01:59
2
answers

C # Simple - Forms - Move to the datagrid which I select in the combobox [closed]

Well, I'm new to programming language, I need some help. I'm trying to call the database in combobox with select, but I'm not able to do a function that when I click OK, it shows me the answer of what I selected. I need that help. using System...
asked by 11.08.2014 / 19:47
1
answer

Put a combobox on a column of a datagridview

Using C #, with EntityFramework and codefirst, I have the following classes in my models layer: public class Cliente { public int ClienteId { get; set; } public string Nome { get; set; } public string Email { get; set; } public...
asked by 08.07.2017 / 04:11
1
answer

Fill ComboBox without repetitions

I'm trying to fill a ComboBox from a db , but ComboBox is populated with many repeated items! OleDbConnection Con = new OleDbConnection(); Con.ConnectionString = Properties.Settings.Default.dbCombo; Con.Open(); OleDbComman...
asked by 26.08.2016 / 19:49
1
answer

Search in the ComboBox only items that match the digits

In a User Registration Form, I have a% c_of% Civil Status Register (which loads the data from a SQL table), when writing to combobox the system needs to search the data and only present the ones that match with the typed one. For examp...
asked by 25.09.2015 / 16:39
1
answer

Insert component without using the 'setBounds'

I'm using a free design in my project and dragging into my jframe the components I want. However, I needed to use a jComboBox with autocomplete and I was guided by this site. Now I wanted to use the class 'AutocompleteJComboBox' and apply it t...
asked by 18.11.2014 / 16:04
2
answers

Combobox update linked to Binding

I'm working with the MVVM pattern, so far so good, I have a PessoaViewlModel class. In it I have a property IEnumerable<Municipio> Municipios , which shows me all the municipalities, according to UF(Unidade federa...
asked by 27.05.2014 / 19:50
1
answer

How to work with Foreign Keys in C # ASP .NET Core?

Good night, guys. I'm a beginner in C # ASP .NET Core and I'm having problems with Foreign Key. I need to populate a combobox with data from a database table. The following is my model Seller using System; using System.Collections.Generi...
asked by 21.11.2018 / 22:07
2
answers

Selected combo component

I'm having a problem loading the screen with a selected combo item. I've tried with jQuery, angled and it did not work. I already researched other answers here and none of the alternatives worked. Anyone have any idea what it might be? <...
asked by 18.06.2018 / 13:49