Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternating Colors in Grids
Message
De
23/02/2006 18:54:25
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
Divers
Thread ID:
01098730
Message ID:
01098739
Vues:
17
300,000 records is way too many to display in a grid. You should do a SQL SELECT or view for the required records and ORDER BY the desired sort order. That way, you'll only have the records you want and you can color by record number.

>I have a grid that is fed by a potentially large table (up to 300,000 records and fairly wide). Depending on which radio button is clicked, the table indexes in different ways (last name, account number, first name, date of birth, etc.). How do I get the rows to alternate colors (odd rows color A, even rows color B)? Setting them by record number doesn't work because the table can be indexed several ways. Also, sometimes the grid will contain only some of the records (for example, records of people with certain initials). Anything that involves scanning the records is too slow. Any ideas?
>
>Jerry
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform