private void UpdateComboBoxSelsovet() { var commandServer = new CommandServer(); comboBox1.Items.Clear(); comboBox1.DataSource = commandServer.ComboBoxList(@"select Selsovet from Selsovet order by Selsovet", true); }
private void comboBox() { var commandServer = new CommandServer(); radDropDownList1.Invoke(new MethodInvoker(delegate() { radDropDownList1.DataSource = commandServer.ComboBoxList(@"select ФИО from spezialistView(2,0) order by [ФИО]", true); })); radDropDownList2.Invoke(new MethodInvoker(delegate() { radDropDownList2.DataSource = commandServer.ComboBoxList(@"select ФИО from spezialistView(2,0) order by [ФИО]", true); })); }
public void LoadDrop() { var commandServer = new CommandServer(); radDropDownList1.DataSource = commandServer.ComboBoxList(@"select convert(nvarchar, dat, 20) from One_soc order by dat desc", false); }