DataSet ds = new DataSet(); SqlDataAdapter adapter = new SqlDataAdapter("Select CUSTOMER_ID,NAME from CUSTOMERS group by CUSTOMER_ID,NAME", conn); adapter.Fill(ds); comboBox1.DataSource = ds.Tables[0].DefaultView; comboBox1.DisplayMember = "NAME"; comboBox1.BindingContext = this.BindingContext;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)