Link to home
Start Free TrialLog in
Avatar of javagair
javagairFlag for United States of America

asked on

how do I get a listbox to show up in one column of a datagridview control in vb.net

every thing I read, it says to go to the datagridview properties
listbox details and add a listbox

I can find no such property.

using visual studio 2010.
made all of the columns, want the second column to have a dropdown list with three words in it.
do I have to add something to the project or to the properties or make my own datagrid with this type of property?
thanks gary
Avatar of John (Yiannis) Toutountzoglou
John (Yiannis) Toutountzoglou
Flag of Greece image

There is no ListBox In datagridview ..You can Add a ComboBox Column instead..and change ComboBox Dipslay style...
ASKER CERTIFIED SOLUTION
Avatar of John (Yiannis) Toutountzoglou
John (Yiannis) Toutountzoglou
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of javagair

ASKER

actually it is blank.  the datagrid will fill in with a row for everyday of the current month. if then if there are no matching dates from a sql search of the database the user can fill in information for each day.  If there are already days filled in for the month they will then populate the datagrid and the user will fill in any missing day's information.

Funny things is that when I looked on multiple programing sites they all mention using the list box, some even have pictures of using it but they all claim there is a listbox bind in the property box.

will try the item list.

gary
Here is a sample
http://www.codeproject.com/Articles/24180/DataGridView-Control-with-ListBox

Also could you give an example for that you say
"looked on multiple programing sites they all mention using the list box.....
maybe these are 'third Party components..
You are right, places I was looking showed picture from the above codeproject and I just made an assumption that I was doing something wrong.

Your solution works great, I just had never used the control before and didn't drop the listbox down for the column.

thanks

gary
Glad i Helped you ..


John