combobox in datagrid.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • achalmehra
    New Member
    • Apr 2010
    • 10

    combobox in datagrid.

    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
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    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

    Comment

    Working...