Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo Box In Grid?
Message
From
05/11/1999 07:05:30
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
05/11/1999 06:05:10
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00287371
Message ID:
00287377
Views:
20
>Can anyone please tell me how I can put:
>
>(1) a combo box in a grid , displaying data accessed from a table
>
> by this combo box I need to setup the field's value on each record
> that is displayed in the grid, and I would like also to set the
>
> fields readonly=.T. , and just leave of the combo box field as
> readonly=.F.
>
>
>
>(2) a button near each and every record that is in the grid, inwhich i
> can put code, to give me further results; using data in the
> record where the button was pressed.


Johann,
Create one temporarily on form. Then copy it. Rightclick on grid and select edit, select target column and paste. Change column's currentcontrol property to added control (use dropdown). I suggest not to set sparse = .f. for combo in a grid but it's up to you. Set combo's style to "dropdownlist" so it would be "readonly" for a new entry.
Same goes for commandbutton.
If you save your temporary controls as classes and use them instead it would be easier to manage them later.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform