Results 1 to 4 of 4

Thread: The DataGrid

  1. #1

    Thread Starter
    Hyperactive Member parkes's Avatar
    Join Date
    Jan 1999
    Location
    Unitied Kingdom
    Posts
    303

    Post

    I'm trying to get a cell in the Datagrid to produce a drop down menu, but having no luck. I've set the cell to have Button Enabled, but how do I get the thing to produce a list directly under the cell??

    ------------------
    Thanks in advance for any help provided.

  2. #2
    Lively Member
    Join Date
    Apr 1999
    Location
    India
    Posts
    73

    Post

    here is the code
    place this code in buttonclick event of the grid,....
    Dim bCol As Column
    Set bcol = datagrid.Columns(ColIndex)
    lstbox.Width = bcol.Width
    lstbox.Left = datagrid.Left + bcol.Left
    lstbox.Top = datagrid.Top + datagrid.RowTop(datagrid.row) + datagrid.RowHeight
    lstbox.Visible = True
    lstbox.SetFocus

  3. #3
    Addicted Member
    Join Date
    Jul 1999
    Location
    Portland, OR.
    Posts
    226

    Post

    Hi Manish

    I can't get it to work!
    Don't we have to Dim the lstbox first.

    Please help.

    Thanx.

  4. #4
    Hyperactive Member
    Join Date
    Jun 1999
    Posts
    308

    Post

    Lyla, you have to put list control on form at design time and set property Visible=False
    Larisa

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