SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
SI - Site Forums : Silicon Investor - Legacy Interface Discussion (2004-2011) -- Ignore unavailable to you. Want to Upgrade?


To: Hoatzin who wrote (1744)10/1/2004 10:35:29 AM
From: SI Bob  Respond to of 6035
 
I use Netscape and Mozilla, mostly. I see what you mean about IE, no "rules" there at all, so to speak.

The "GridLines" property of datagrids supposedly defaults to "None".

I added that in to the datagrids for SubjectMarks and PeopleMarks and the rules went away.

And now that I've looked at the source and the style sheet, I see some opportuinities for Bob to save some bytes on that page: lots of superfluous font face="Verdana" in there...

I've temporarily changed the font to Arial for consistency's sake, but will see what I can do to use CSS later to save a bunch of bytes. Datagrids are very new to me and I may end up not using them at all. I was very impressed at first with how few lines of code it took to draw a page using them, but am not entirely impressed with them overall now that I've gotten more accustomed to them. In fact, pages like Inbox used datagrids early in development and I ended up switching to doing them the way I'm accustomed to: using style "ter" ("Table Even Row" -- I'm even anal about how many bytes I use in CSS names) for even rows and "tor" for odd rows.

It takes a bit more code to do it "my" way, and I really don't know if one way is faster than the other, but I think my way tends to use a few less bytes and I've done it so many times I don't even have to think about it when I'm doing it. If anything, I might be adding a minor amount of overhead by tracking a "rownum" variable and incrementing it for each record, then mod'ing it to see if it's even or odd, but I suspect datagrids do the same thing anyway behind the scenes.