Read WebProNews
With Friends!

ASP.NET: Make GridView Control Accessible

Get the WebProNews Newsletter!
Top Rated White Papers and Resources
There are 12 Comments. Add Yours.
  1. Hristo

    a lot!!!

  2. Pete

    Can you add styles to the <thead> too?

    Like <thead class="myFunkyClass">

    Pete

    • Asasa

      did you find out how to add style or class?

      Thanks

  3. HappyCamper

    That was awesome.

    You rock.

  4. Great job! This is exactly what I was looking for. Nicely written.

    Brent

  5. Jon Williams

    Mads,

    This really helped me.

    I was struggling to get the JQuery tablesorter working because of the HTML produced by the GridView Control (not putting th tags inside the thead tags). It now works a treat.

    Many thanks,
    Jon

  6. Francois YACOB (Yak)

    Hi,

    To implement CSS to the thead, tfoot, tbody, use CSS selector, for example create in your css file something like :

    .YourCssClass {
    ….
    }

    . YourCssClass > thead {
    ….
    }

    . YourCssClass > tfoot {
    ….
    }

    For information about Css selector, you can consult http://www.w3.org/TR/CSS2/selector.html

    Hope it helps,
    Francois

  7. Erik J

    You should call MakeAccessible from the GridView’s PreRender event method.

  8. Guest

    Thank you very much…

  9. Thanks a lot, this helped me with printing out a really long gridview table.

    It saved me from having to use Crystal Reports!

    Jon

  10. Thanks SO much. This is essential stuff that is still not default in .NET 3.5! [frown] Just wanted you to know that the info is as good on 3.5 and VS2010 as it was on 2.0 and VS2005.

    Thanks.

What do you think? Respond.

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>