Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fancy Grid
Message
De
18/04/2000 15:54:13
Allen Hanna
H. A. Hanna Associates
Indianola, Indiana, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00360801
Message ID:
00361025
Vues:
18
Nick,

Thanks! It seems like a lot of work for little advantage, so I'll go with a separate list box that selects the category and then refreshes the grid items for that category. Sometimes clients have ideas that aren't too practical to implement in code.

Allen

>>I have an order entry app using a grid for items, quantities, price, etc. My client would like me to insert headers into the grid to show categories that items belong to. The headers of course should not have quantities, price, and so on. I don't think it's possible. The grid should look something like this:
>>
>>Category A
>> 1 item one $12.95
>> 2 item two $10.00
>>Category B
>> 1 item one $45.50
>> 3 item two $11.16
>>etc...
>>
>>Thanks,
>>Allen
>
>Actually it can be done, but IMHO it is not a good solution. For example, you may create the cursor with your data, add some records with your headers and the corresponding category_id, index the cursor on your category_id + additional_field to ensure that your category header goes first. This sometimes can be used for the report cursor to simulate multiple details band, but it is not as convenient for the grid source.
>Instead of this I would suggest to use DynamicBackColor to highlight your records in grid with different color for each category (provided that there are not too many of them, otherwise you may have problem with choosing the colors :)
>
>Nick
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform