Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to put a combobox on a grid?
Message
De
02/09/1998 12:03:52
 
 
À
02/09/1998 12:01:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00132367
Message ID:
00132415
Vues:
13
>>>>>>>I would like to put a combobox on a grid with values of AM and PM for
>>>>>>>the time. My users need to enter in a time in the gird. I hope this is the best way to handle the time. any ideas? thanks
>>>>>>
>>>>>>just do this, i.e. add combobox with these two values to grid.column. You may base this column on some dummy field of recordsource which will keep "AM" or "PM". Another way is to use textbox with 2 possible values (Text.Format="M", Text.InputMask="AM,PM").
>>>>>----------
>>>>>Hi Ed and thanks for your answer. It is nice to hear from you again. I have
>>>>>been busy and have not had the time to spend on UT.
>>>>>I am not sure how I would add a combobox to a grid. I will need this
>>>>>combobox to be on on same column of all the records on the gird.
>>>>>This is something new for me.
>>>>
>>>>Right-click on grid, click on combo on Controls Toolbar, click on column you want to add combo to.
>>>-----------------
>>>I am using vfp50 and I do not have those options.
>>
>>You have them:
>>1. Open Form Designer
>>2. Right-click on grid
>>3. Select 'Edit' from shortcut menu
>>4. Click on combo on Controls Toolbar
>>5. Click on column you want to add combo to.
>--------
>ok - great - I am almost there. at step 5 - When I click on the
>gird's text field, it places a combobox in the property sheet of that column.
>When I run the form, i do not see the combobox in the columns?

6. Column.CurrentControl="combo1" && you may also remove Textbox from the column
7. Column.Sparse=.F. && if you want to see it in all rows
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform