ya, u can use a individual combo box or list box in db grid control. here is a little code, which shows a dblist box in dbgrid control. put a dbgrid and dbcombo on a form and paste the following code and test. it may solve ur problem.
Private Sub DBGrid1_ButtonClick(ByVal ColIndex As Integer)
If ColIndex = 0 Then
DBCombo1.Visible = True
DBCombo1.Left = DBGrid1.Left + DBGrid1.Columns(0).Left
DBCombo1.Top = DBGrid1.Top + (DBGrid1.RowHeight) * (DBGrid1.Row + 1)
DBCombo1.Width = DBGrid1.Columns(0).Width
DBCombo1.SetFocus
Exit Sub
End If
End Sub
Private Sub Form_Load()
DBGrid1.Columns(0).Button = True
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.