Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo box in a Grid
Message
De
29/05/1999 13:52:08
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Combo box in a Grid
Divers
Thread ID:
00224371
Message ID:
00224371
Vues:
44
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
Fil
Voir

Click here to load this message in the networking platform