The Dink Network

Reply to Re: Databinding in Visual Studio

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
January 19th 2012, 03:59 AM
dinkdead.gif
Tried that

'VB:
comboAuthor.Items.Insert(0, "Select author...")
comboAuthor.SelectedIndex = 0
Does nothing.

Odd. SelectedIndex = -1 gives a blank default, but if I do
comboAuthor.Items.Insert(0, "Select author...")
comboAuthor.SelectedIndex = -1
then there's no blank, just the 1st name in the database.

And if I try inserting before the
Me.TbAuthorsTableAdapter.Fill(Me.BooksDataSet.tbAuthors)
line instead of after, then I end up with an empty combobox.