Hey guys,
Im trying to include an item called "Please select ..." in a combobox which is populated using a dataadapter. As you can see below, combobox items are inserted into the item list using a tableadapter. It is followed by a set of codes that inserts "Please select ..." into the item list at index 0.
When I debug, lines of code after tableadapter.fill gets bypassed. Sigh....
Whats wrong with my codes?
Public Class Form2
Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.Table1TableAdapter.Fill(Me.My_DataSet.Table1)
Me.ComboBox1.Items.Insert(0, "Please select ...")
Me.ComboBox1.SelectedItem = "Please select ..."
End Sub
End Class