Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkboxes in grids
Message
De
13/09/1999 10:39:23
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00263961
Message ID:
00263985
Vues:
29
>>i set a field as a logical field and i displayed all the fields from the same table in a grid. for the logical field, i
> displayed the value using checkboxes. but it seems that even if i show all the records from the table in the grid,
> the checkboxes for each records is not visible. only the checkbox for the active record is shown. that means i can
> only see one checkbox for one record at any given time. how can i show all the checkboxes for all the records at
> the same time in my grid? I'm not sure some you might even understand my gibberish but if any of you do, please
> help me figure this out. thanks a lot. :)
>
>
> Set sparse for column to .f. Susan, in one of your previous messages I remember something to allow multipl
> selection using checkboxes. If this is for that also check MultiSelectGrid in gridx.zip (files\classes section). There
> checkboxes are not displayed but you could include if you want.
> Cetin
>
>Cetin.. good memory you have there :P I've already set sparse to .f. but i dont quite understand how the multiselectgrid is supposed to work. can u elaborate further? the checkboxes still didnt appear for all the records. only one at a time.


Susan,
Where did you set sparse = .f. It should be at column containing checkbox control. Also, currentcontrol should be checkbox (might it be it's in DynamicCurrentControl ?).

MultiSelectGrid is for replacing Multiselect combos. It works like explorer selection (Space, Ctrl+Click, Shift+Click etc). Selected records are highlighted, header click sorts on column, current column header has yellow background etc. It's either created on the fly passing parameters (lcSQL, lcOriginalTableName) or in designer (set its cSQL, cOriginalTable properties then). Each multiselect (there can be mutipl at a time) grid, generates a new name for its own cursor. You reach it via .myMultiselectGrid.RecordSource. When grid removeobjected or its form released, recordsource is also closed in its destroy. So you must use it before grid has gone. I had included samples with it AFAIK. It's easy to use because its cursor is an SQL copy of its source with a few more fields added (like recno if selected from just one table).
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform