I’m creating a the first row of a table to display header text that will give meaning to a group of rows below it.
Upcoming Events
then looping thru the model to build a table listing of those upcoming events. But there may be client-side conditions that result in no rows being rendered which negates the need for the header row.
How can I reach back from the end of my ‘Upcoming Events Iterator’ and delete the first row (id=”HeadRow”)?
If you don’t need a header row, then you probably don’t need the table, so why not just hide the entire table?
Then, later, if there is something to show, then you don’t have to rebuild the header row, you can just update the table and make it visible.