Click to See Complete Forum and Search --> : The DataGrid
parkes
Nov 21st, 1999, 07:02 PM
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.
Manish
Nov 21st, 1999, 07:24 PM
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
Lyla
Nov 22nd, 1999, 06:26 PM
Hi Manish
I can't get it to work!
Don't we have to Dim the lstbox first.
Please help.
Thanx.
LG
Nov 22nd, 1999, 06:51 PM
Lyla, you have to put list control on form at design time and set property Visible=False
Larisa
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.