Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fancy Grid
Message
 
À
18/04/2000 08:45:03
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:
00360817
Vues:
10
>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
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform