Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I do a subtotal in a grid
Message
 
À
05/10/2004 12:28:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00948835
Message ID:
00948854
Vues:
16
> in excel there is an option to subtotal, is it possible to do something
> similar by maybe hiding certain rows which contain subtotals and totals
> and making them visible on a click, or anything similar, any ideas?

This is one of the reasons why I sometimes hate our stunningly fast VFP-Grid. It can display tables very easily but everything above that takes an enormous ammount of effort to realize. NO, You can not do such thing by default. You will have to trick the grid by providing such data as rows in the table and work with things like DynamicForecolor and thelike using a flag-column telling You witch row is "normal data" and witch is Subtotal-data. If You allow editing You'll also need methods that track changes and modify the subtotals directly.

Subclassing or BindEvent() might help You making this possible.

Maybe You'll find something in the download-Area but I'm not sure
Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

Frank.Dietrich@dd-tech.de
DFPUG # 327
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform