Information générale
Titre:
Combo box in a Grid
Hi,
I was hoping to create 5 columns for the grid in the init() event of the form and change the CurrentControl to the combo box instead of the textbox in column4. This is what I got so far, but I am not able to see the data that I populated in the combobox and it made a clicking sound everytime I clicked on the down arrow key of the combo box. What I am missing from this code? Thanks in advance.
In the Init event of the form.
WITH ThisForm.Grid1
.RecordSource = "ChkData"
.ColumnCount = 5
.DeleteMark = .F.
.AllowHeaderSizing = .F.
.AllowRowSizing = .F.
.Column4.Width = 100
.Column4.AddObject( "cmboPFrm", "ComboBox" )
.Column4.CurrentControl = "cmboPFrm"
.Column4.cmboPFrm.Visible = .T.
.Column4.cmboPFrm.RowSource = "1,2,3,4,5"
.Column4.cmboPFrm.RowSourceType = 1
ENDWITH
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement