Results 1 to 4 of 4

Thread: Adding a Combo drop down to a grid

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Posts
    2

    Lightbulb

    I am trying include a drop down combo box in a grid. How can I do that ? I want the users to select from a pre-defined list of choice when they move to a certain column in the grid . This needs to be the case for every row on the grid. Any suggestions ?

  2. #2
    Addicted Member
    Join Date
    Jul 1999
    Location
    St-Élie d'Orford, Quebec, Canada
    Posts
    133
    Hi,

    I've done something like this but I use special DropDown and Grid components (Sheridan software) so this is how I did this but I don't know if it can apply to your case :


    In the InitColumnsProps event of the grid I told him to
    bind a dropdown control on one of it's specific rows like this :

    grdLecteur.Columns("BaudRate").DropDownHwnd = ddBaudRates.hWnd

    The grdLecteur is my grid and the ddBaudrates is the dropdown.

    Hope it helps...

  3. #3
    New Member
    Join Date
    Jun 2000
    Posts
    1
    Depending on your grid your can select the Style in the properties. You can either add during the design time or add during the run-time from a recordset or what ever.

  4. #4
    Addicted Member LAURENS's Avatar
    Join Date
    Jan 2000
    Location
    Utrecht, the Netherlands
    Posts
    138
    I use Apex True DBGrid for all my grid programming. It's a great vb component that I use as a basis for many applications. Of course it also support dropdown lists. I suggest you download an evaluation copy from http://www.apexsc.com and see for yourself. It takes away a lot of the pain in grid programming.
    Regards,
    Laurens

    Using VB5 Enterprise edition SP3
    VB6 Enterprise edition SP5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width