Progress

Posted by MicheeRose, geek on November 29th, 2005 — Posted in .Net

See, I knew I could find the answer once I started hunting…
Indeed, I have discovered the .Net method for generating the table. I still hold that it’s not intuitive. Okay, maybe it could become intuitive but regardless it’s clunky. First I have to create row & cell variables, then set the various properties, then add the cell(s) to the row, then the row(s) to the table. Each action being a new line of code. Sheesh! And apparently I can’t (or it requires more steps) reuse a variable. Example: I was building my table header (here I have a problem: asp-generated tables won’t use the thead tag; although they will correctly generate th cells…). I didn’t want to create a new variable for all 5 of my header cells. So I set values, added the cell & modified the values again, wash, rinse, repeat. But that doesn’t work. I think there’s a cell.clear property somewhere, but I haven’t explored that yet (I will shortly).Edit 11/30/05: Ooops, wasn’t thinking about how it was referencing the variable. I started to explain my problem to someone else and it dawned on me.
Oh yes, and one more complaint (yes, this is a complaint): when setting column widths, I can’t simply do cell.width = “15%”. No. I have to do cell.width = unit.percentage(15). Gracious me!
I guess I’m just the “quick and dirty” sort of programmer.—even though I’d like to think I write well-thought-out code…I just don’t like to spend a lot of time actually coding my solution.

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment