By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,213 Members | 1,105 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,213 IT Pros & Developers. It's quick & easy.

Bound ComboBox to display blank first line

P: n/a
Hi All,

Just wondering if anyone knows if it is possible to startup a windows form
with a comboBox that is bound to a dataset which starts off as having a
blank line. ie. the user has to choose an option before all the info
appears and not just goto the first record automatically.

I currently have a comboBox that is bound and starts off at the first
record.

Thanks,
Jesse
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
* "Jesse Villani" <je*****@hotmail.com> scripsit:
Just wondering if anyone knows if it is possible to startup a windows form
with a comboBox that is bound to a dataset which starts off as having a
blank line. ie. the user has to choose an option before all the info
appears and not just goto the first record automatically.


Set the 'SelectedIndex' property of the control to -1 twice.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

P: n/a
Scanned the doc. There are some things I agree with you on, and you will
likely see some in the future. Version 1.0 was a fight, as traditional VBers
fought for old style coding, saying they could not upgrade without them.
Then, very few projects were upgraded. Microsoft gave in on some issues, but
reverted back on others.

There are some things in your critique that I will disagree with rather
strongly, but I will post a bit later.

NOTE: hate the pop ups. ;->

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************** ********************
Think Outside the Box!
************************************************** ********************
"Jesse Villani" <je*****@hotmail.com> wrote in message
news:3f***********************@news.optusnet.com.a u...
Hi All,

Just wondering if anyone knows if it is possible to startup a windows form
with a comboBox that is bound to a dataset which starts off as having a
blank line. ie. the user has to choose an option before all the info
appears and not just goto the first record automatically.

I currently have a comboBox that is bound and starts off at the first
record.

Thanks,
Jesse

Nov 20 '05 #3

P: n/a
Ta.
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:#L**************@tk2msftngp13.phx.gbl...
* "Jesse Villani" <je*****@hotmail.com> scripsit:
Just wondering if anyone knows if it is possible to startup a windows form with a comboBox that is bound to a dataset which starts off as having a
blank line. ie. the user has to choose an option before all the info
appears and not just goto the first record automatically.


Set the 'SelectedIndex' property of the control to -1 twice.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.