Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

C#/ASP.NET Table control

  • 13-04-2008 2:18am
    #1
    Registered Users, Registered Users 2 Posts: 1,391 ✭✭✭


    Probably something real simple but how can I add an empty row to a table in ASP.NET?


Comments

  • Registered Users, Registered Users 2 Posts: 1,391 ✭✭✭fatherdougalmag


    Never mind. Cell.Text = " " does the trick.


  • Registered Users, Registered Users 2 Posts: 6,762 ✭✭✭WizZard


    Never mind. Cell.Text = " " does the trick.

    That's a bit of a hack, is there no better way?? What version of ASP.NET are you using?


  • Moderators, Science, Health & Environment Moderators Posts: 9,053 Mod ✭✭✭✭mewso


    Hack or not it's the best way to do it since any table with nothing in the cell will not be visible, in IE at least.


  • Moderators, Society & Culture Moderators Posts: 9,689 Mod ✭✭✭✭stevenmu


    Yep, it's not an ASP related problem, that will create the empy row no problem, the problem is that some browsers won't render it correctly.

    The other thing people do, apart from &nbsp, is to create a 1 pixel transparent gif and put that in the cell (IIRC firefox/mozilla will sometimes render the actual characters &nbsp instead of a blank space).


Advertisement