minetteh

minetteh

  • NA
  • 7
  • 0

Populating a dynamic comboBox in a WinForm using WebServices linked to a Db

Jan 30 2004 4:56 AM
This is is the part of the code in the WinForm what i am not sure about.. private void Form1_Load(object sender, System.EventArgs e) { Dataset ds = new DataSet(); Service1 service = new Service1(); -> this is my WebService string sqlText = "exec getPriceChange"; -> calls stored pracedure comboBox1.DataSource = service.getSet(sqlText); ->connects to db comboBox1.DisplyMember ="amount_desc"; ->a var in the table called in comboBox1.ValueMember ="price_id"; stored procedure } Please help!!! Thanx