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

combobox in datagrid.

P: 10
hi friends, i am working in VB.net...

i have a requirement of using a dropdown list/combobox in data grid for allowing user to select from the list.
how can i do that.I want to have a particular column with this option available that should be filled with data from the SQL database.

For e.g :

if following are the fields in grid view :
emp id , emp name , salary

now in this what i want is that user could select the emp id for which he wants to enter the data.
then on the basis of the selection emp name field should be filled automatically and then user enter the salary which get saved after pressing a button on form

how could i achieve that in VB.net and using SQL databse
Apr 5 '10 #1

✓ answered by Frinavale

There are column types that you can use in order to display your data the way that you want to in a DataGridView.

Check out this article on Column Types in the Windows Forms DataGridView Control.

If that article doesn't help you please use the MSDN Library to do further research on the topic.

Once you've attempted the problem and have a more specific question post back here :)

-Frinny

Share this Question
Share on Google+
1 Reply


Frinavale
Expert Mod 5K+
P: 9,731
There are column types that you can use in order to display your data the way that you want to in a DataGridView.

Check out this article on Column Types in the Windows Forms DataGridView Control.

If that article doesn't help you please use the MSDN Library to do further research on the topic.

Once you've attempted the problem and have a more specific question post back here :)

-Frinny
Apr 13 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.