Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alternating Row Color
Message
 
 
Information générale
Forum:
Internet
Catégorie:
Stylesheet
Divers
Thread ID:
01386202
Message ID:
01386690
Vues:
39
>Michel,
>
>>Ok, so as is it wouldn't right? By that, I mean, in order for that to work, does it require an XSL file?
>
>Well, no it doesn't require the table rendering to be done by XSL. It can be done by whatever code you have that turning a resultset into an HTML table. In my particular case it's XSL code that's converting an XML document into HTML. The code could have been VBScript on an ASP page, or C# or VFP. All the code does is doing is assigning a different class to the alternating rows. Using a numeric classname like that allows a mod() function to easily convert a row number into an band color. It also makes it easy to support as many alternating band colors as you want.

Now when you talked about it we used similar technique for highlighting current record under mouse in the GridView.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform