Google Answers Logo
View Question
 
Q: Adding a dropdown list in VS to a windows form datagrid ( No Answer,   1 Comment )
Question  
Subject: Adding a dropdown list in VS to a windows form datagrid
Category: Computers > Programming
Asked by: homebuilder-ga
List Price: $10.00
Posted: 15 Mar 2003 08:12 PST
Expires: 19 Mar 2003 06:46 PST
Question ID: 176533
I am using Visual Studio 1.0 to develop a windows application that
reads data from SQL200 using a dataset, This is working fine but I
would like to add a dropdown list (comboBox) to one of the columns in
the grid inorder to restrict values to items that are in the list.
These items are are located in a seperate table. Can this be done on a
windows from I found an article on how to achive this using ASP but
that does not seem to work on a Windows form.
Answer  
There is no answer at this time.

Comments  
Subject: Re: Adding a dropdown list in VS to a windows form datagrid
From: zendro-ga on 16 Mar 2003 23:33 PST
 
As long as your columns widths and row heights are predictable you
could just overlay a combo box on top of the grid.  Whenever the
cursor enters that cell where you want the combo, move the combobox on
top of where you are and then make it visible.  when the user tabs out
of the combo use set focus, etc. to put the cursor back where they
expect it to be in the next cell and make the combo invisible again. 
Kinda cludgy but I think it would work.  Hope this helps.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy