hi..
i want to fill my combobox from the values which im having in my table in the database. and my combobox name is combobox1 and my table is tblDetails, and this table having two columns code and name. i want code values to the cobobox.
here is my code which i tried to do
ds the dataset.
this is not working. can some one tell me what was the wrong that im doing here.
i want to fill my combobox from the values which im having in my table in the database. and my combobox name is combobox1 and my table is tblDetails, and this table having two columns code and name. i want code values to the cobobox.
here is my code which i tried to do
Code:
this.comboBox1.DataSource = ds.Tables["tbldetail"]; this.comboBox1.DisplayMember = "Code";//column display name this.comboBox1.ValueMember = "code";//actual column name
this is not working. can some one tell me what was the wrong that im doing here.
Comment