How can have a combobox which has all values from a specific column in database. I have a column named StudentName and I want to have a combobox that has all values of StudentName in it.
sql = new SqlConnection(@"Data Source=PC-PC\PC;Initial Catalog=Anbar;Integrated Security=True");
adapter = new SqlDataAdapter("select * from School", sql);
How should I continue? Please give some codes for continuing these codes any help will be appreciated.
Also read this Populate Date from Database in a ComboBox