SqlCommand cmd = new SqlCommand("select ID_niveli from Niveli", con);SqlDataReader dReader = cmd.ExecuteReader();
if (dReader.HasRows == true){while (dReader.Read())
cmbNiveliRegj.Items.Add(dReader["ID_niveli"].ToString());
}dReader.Close();
In this code I need in my combobox the value member to be ID_niveli, but to be displayed NameN?!?