private void FillCombo() { var comboContent = new List<object>(); var fillCombo = new ReadFromDataBase(); comboContent=fillCombo.ReadColumnDatabase(ConfigurationManager.AppSettings["ComboBox"]); for (int i = 0; i < comboContent.Count; i++) { comboBoxViewTable.Items.Add((string)comboContent[i]); } }