Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert data column into combo box column

Status
Not open for further replies.

oh704

Technical User
Oct 20, 2009
8
0
0
US
Hi All,

I've a datagridview that's populated by a datatable from a SQL. there's a column named "VOTE" in which there can only be 2 string values: "ACCEPT", "REJECT".

How do I set up a combobox on this "Vote" column and only have these two values as choose? and have a warning for any other values entered...

also, is it possible to do autocomplete with typing?

I did a search a found a couple of threads, but the ones i've gone through are making a combo box column in addition to the current dataset. what i am looking for is to convert a column from the sql dataset, to be able to select value from a drop down.

please advise.
Thanks.
 
Take a look at this thread I had. RiverGuy was able to provide a lot of insight on how to do what you are asking for: thread796-1585280

--------------------------------------------------
Stubbornness is a virtue -- if you are right. --Chuck Noll
--------------------------------------------------
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top