Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Can I set combobox properties in VS2013 to autoload a field from a dataset?

$
0
0

Hi,

VS2013, VB.  I successfully loaded a ComboBox by doing the following:

FacultyTableAdapter.Fill(abcDataSet.Table1)

Dim table1Info As System.Data.EnumerableRowCollection =
  From tblInfo In abcDataSet.Table1
  Select tblInfo

For Each tRow As abcDataSet.Table1Row In table1Info
  ComboBox1.Items.Add(tRow.name)
Next

This seems to work fine.

My question is:

"Can this be accomplished by binding the ComboBox text field to the DataSet table in the Properties Window?".  What steps do I need to follow, and which method is better?  I haven't been successful with that process.

Thanks.

Best Regards,

Alan


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>