DataGridView with Combobox in Column

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rich Knapp
    New Member
    • Oct 2007
    • 2

    DataGridView with Combobox in Column

    I'm binding Access manually to my Grid and it works great, but I want to include a combo box in a grid column that displays fields from a related table.

    What is a good way to go about this?

    Thanks
  • jrtox
    New Member
    • Sep 2007
    • 89

    #2
    Originally posted by Rich Knapp
    I'm binding Access manually to my Grid and it works great, but I want to include a combo box in a grid column that displays fields from a related table.

    What is a good way to go about this?

    Thanks
    Hello, take a look in this link and download attachment.
    http://www.thescripts. com/forum/thread718154.ht ml

    maybe it can help you.

    But if not, Please Explain more your problem

    Regards
    Phils Ervin

    Comment

    • Rich Knapp
      New Member
      • Oct 2007
      • 2

      #3
      Originally posted by jrtox
      Hello, take a look in this link and download attachment.
      http://www.thescripts. com/forum/thread718154.ht ml

      maybe it can help you.

      But if not, Please Explain more your problem

      Regards
      Phils Ervin

      This isn't quite what I'm trying to do. For one thing, I'm working in VB.NET. Also,I want the descripive value of the related table to display in the DataGridView. (This is easily done through a query.) However, I also want to able to select and change the descriptive value by clicking in the cell and seeing a dropdown/combobox that I can pick from.

      Thoughts?

      Thanks
      Rich Knapp

      Comment

      • jrtox
        New Member
        • Sep 2007
        • 89

        #4
        Originally posted by Rich Knapp
        This isn't quite what I'm trying to do. For one thing, I'm working in VB.NET. Also,I want the descripive value of the related table to display in the DataGridView. (This is easily done through a query.) However, I also want to able to select and change the descriptive value by clicking in the cell and seeing a dropdown/combobox that I can pick from.

        Thoughts?

        Thanks
        Rich Knapp

        I see, in the first place you did not specify that your using VB.NET

        Anyway, i cant help you with that/

        regards
        Phils Ervin

        Comment

        • moggaa
          New Member
          • Sep 2007
          • 13

          #5
          El Salamoh 3likom we Ra7mat Allah we Barakatoh

          It's very easy to do that, you have to but in your data grid or data view any item template then you have to add in it your drop down list with your data text filed and you data value filed
          then you have to create function return your data table then in your data gird item data bound you have to find the control i mean you drop down list
          then you will add for this dripo down list in data Source your data table ( function return data table ) then your drop down list data bind

          that will be good Inshaa Allah

          Eng. Maged
          Last edited by MMcCarthy; Dec 17 '07, 12:16 PM. Reason: removed personal contact information

          Comment

          Working...