locked
CSS Friendly Gridview RRS feed

  • Question

  • User-1085824754 posted

    I searched, but I cannot find any examples to make the gridview generate CSS. The examples in Scott's blog had everything but the gridview, can someone tell me how to implement this or point me to an article? Thanks!

    Tuesday, May 16, 2006 1:32 AM

All replies

  • User-1639143169 posted

    Follow the examples on the other css adapters on scott's blog, and write a grideview css adapter.

    after you have done so... post it for all to enjoy ;-)

    The problem with a css gridview, is that almost noone will be able to actually write functionaling css for it. that will realistcly handle the felxibilty of what the gridview gives you. Yes, it's possible, but not easy.

    Grid is a table.... in my humble opinioin.... until div/span/css is more relaiable at mimicing a table,. the gridview will have to stay a table.

    The thing about the adapters, my guess is it's not just a gridvew adapter... you would need an adapter for all the field types that normally generate tds, and the for the gridview row to do div instead of tr...

    im not even sure about the situation with headers, footers and other templates in the gridview.

    He.... this could be someones final project.

    Tuesday, May 16, 2006 8:49 AM
  • User-1138738125 posted

    Nice idea and if someone is to take it up here are some nice links for accessible stylable tables

     

    accessible tables

    http://www.456bereastreet.com/archive/200410/bring_on_the_tables/

     

    how to nicely style a table

    http://veerle.duoh.com/index.php/blog/comments/a_css_styled_table/

    Friday, May 19, 2006 3:53 AM
  • User-905044829 posted
    I use tables for my layouts, tables rock!!!!!!!!!!
    Monday, December 18, 2006 12:35 PM
  • User-534056067 posted

    The GridView is now supported by the CSS Friendly adapter kit, http://www.asp.net/cssadapters/gridview.aspx.  In fact, it does use tables but these are trim and well structured... and don't include inline CSS, etc.  Cheers.

    Monday, December 18, 2006 5:18 PM
  • User1216578436 posted

    Well the support of the MS CSS Friendly Adapter for the gridview, it's not a pure CSS solution despite is fully compliant with text-readers and accessibility problems. Since the W3C doesn't forge new tags that can be applied to div to and readers will follow new gerarchy it won't be possible to have a standard solution as well as css pure only.

    Until them, it's a user choice which road to travel. For an internal solution I did, I re-designed the MS solution and proposed my CSS pure only ASP.Net gridview adapter.

    You can find it here:

    http://code.web-ma.com/aspnet-gridviewadapter/

    Bye

    Andrea 

    Monday, July 9, 2007 10:53 AM
  • User1216578436 posted

    Well the support of the MS CSS Friendly Adapter for the gridview, it's not a pure CSS solution despite is fully compliant with text-readers and accessibility problems. Since the W3C doesn't forge new tags that can be applied to div to and readers will follow new gerarchy it won't be possible to have a standard solution as well as css pure only.

    Until them, it's a user choice which road to travel. For an internal solution I did, I re-designed the MS solution and proposed my CSS pure only ASP.Net gridview adapter.

    You can find it here:

    http://www.web-ma.com/code/ASPNet-GridViewAdapter/

    Bye

    Andrea

     

    Monday, July 9, 2007 10:55 AM
  • User1035748140 posted

    http://yourashraf.wordpress.com/2006/10/18/css-for-aspgridview-2/  

    this link is for u dear

    Friday, July 1, 2011 4:16 AM