Hi all,
I have a combobox control in a c# form. I would like to populate this
drop down with values from a dataset- so have written a procedure to
populate a dataset.
Once created I am using this code to populate the combobox...
DataSet ds = new DataSet();
ds = im.getAllOnline ();//a function that return a dataset
comboBox1.DataS ource = ds.Tables["IM"];
comboBox1.Displ ayMember = "username";
comboBox1.Value Member = "userIp";
I have checked the dataset, and it is being populated, but for some
reason I cannot get the combobox to work.
I would really appreciate help with this cos its driving me nuts!!!
I have a combobox control in a c# form. I would like to populate this
drop down with values from a dataset- so have written a procedure to
populate a dataset.
Once created I am using this code to populate the combobox...
DataSet ds = new DataSet();
ds = im.getAllOnline ();//a function that return a dataset
comboBox1.DataS ource = ds.Tables["IM"];
comboBox1.Displ ayMember = "username";
comboBox1.Value Member = "userIp";
I have checked the dataset, and it is being populated, but for some
reason I cannot get the combobox to work.
I would really appreciate help with this cos its driving me nuts!!!
Comment