Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
In a grid -- freeze top record to always stay there?
Message
De
12/12/2007 08:59:40
 
 
À
12/12/2007 08:51:06
Dorin Vasilescu
ALL Trans Romania
Arad, Roumanie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01274845
Message ID:
01275098
Vues:
12
Dorin --

Yeah, I think getting the data grid for the totals will be quite straightforward.

Aligning it will be a little tricky, though, since I think it will have to overlay the lower part of the header of the real grid -- it can't overlay the first row, of course, so I believe I'll have to increase .headerheight appropriately. (A little bit of pixel counting, similar to what you did).

Am looking forward to the opportunity to dig into your code to understand how you take care of horizontal scrolling.

If I understand it, I have another application for it as well -- "super" column headings. I've always wanted to be able to place a "column heading" that spans part of the header for two or more columns. "YTD" might be a super-heading, for instance, for a couple of adjacent columns that all have YTD info in them. I hadn't implemented this because I could not get the horizontal alignment correct, but it appears that you've conquered this problem.

Jim

>>My interest appears to be somewhat different than others ... I have a row in my grid already that has "totals", although they're not always simply computable totals. Furthermore, my grid is readonly, so I don't have to worry about recomputation.
>>
>
>You can Select the row with total in one cursor and build a grid with the cursor as recordsource. That grid has headers and is on top of the data grid, with HeaderHeight=0. You need a filter, to avoid the total row to be displayed in data grid
>
>>So, what I'll be looking for (when I get to it in a few days or so) will be the alignment of the secondary grid, horizontal scrolling, and handling of events.
>
>This was the most difficult part :). Particularly when grid have locked columns at left.
Jim Nelson
Newbury Park, CA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform