Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo box in a Grid
Message
 
À
29/05/1999 13:52:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00224371
Message ID:
00224552
Vues:
15
I don't know about the clicking sound, but it is possible that you omitted setting the ControlSource Property fo the column.

>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
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform