GridView - adapter to render div for <table>, <tr> and <td>

Last post 12-14-2007 9:38 AM by camera. 4 replies.

Sort Posts:

  • GridView - adapter to render div for <table>, <tr> and <td>

    12-14-2007, 1:29 AM
    • Member
      569 point Member
    • Deepesh
    • Member since 07-21-2006, 7:31 AM
    • Posts 128

     Hello,

    I want that my gridview should render <div> for all the elements like <table> ,<tr> and <td>

    How this can be done?

    Thanks,

    Deepes Verma 

    Dont forget to click “Mark as Answer” on the post that helped you.
    This credits that member, earns you a point and mark your thread as Resolved for the sake of Future Readers.
  • Re: GridView - adapter to render div for <table>, <tr> and <td>

    12-14-2007, 3:43 AM

    Can You Explian ur Question in details

    Rajeev Kumar Tiwari
  • Re: GridView - adapter to render div for <table>, <tr> and <td>

    12-14-2007, 3:52 AM
    • Member
      319 point Member
    • ThaYoung1!
    • Member since 09-20-2002, 8:23 AM
    • Eindhoven
    • Posts 86

    Hi Deepes,

    I think this could help you: http://www.asp.net/CSSAdapters/GridView.aspx.
    With the CSSAdapters you can control the HTML output.

    Kind regards,

     ThaYoung1!

    Kind Regards,

    ThaYoung1!
    Filed under:
  • Re: GridView - adapter to render div for <table>, <tr> and <td>

    12-14-2007, 4:03 AM
    • Member
      569 point Member
    • Deepesh
    • Member since 07-21-2006, 7:31 AM
    • Posts 128

     Thanks,

    I have seen the link, but it also render a table, tr, th and td. I have seen the code and tried to modify that.
    I am able to change table, tr and th. But not able to change td.

    Do you have any idea how to do that?

    Thanks,

    Deepesh Verma 

     

    Dont forget to click “Mark as Answer” on the post that helped you.
    This credits that member, earns you a point and mark your thread as Resolved for the sake of Future Readers.
  • Re: GridView - adapter to render div for <table>, <tr> and <td>

    12-14-2007, 9:38 AM
    • Member
      159 point Member
    • camera
    • Member since 07-27-2006, 1:05 PM
    • Austin
    • Posts 44

    Interesting question, but I just cannot help from asking why anyone would want to do this, and I think this is a really really really bad idea. 

    If you're creating tabular data, column headings (th) describe the contents below them (td) in a semantic manner and rows (tr) group instances apart from each another.  If you render the entire table as divs, all semantic meaning in the markup is completely lost.  I cannot imagine any purpose this would serve.  My $.02.


     

    Vine Type: Content Management with Standards in Mind. http://vinetype.com
Page 1 of 1 (5 items)