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?
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...
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...
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...
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...
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...
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...
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...
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...
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?
<...