Print Datagrid directly to Printer

Posted on 2006-05-17
Last Modified: 2007-12-19
Hi guys,

I have this datagrid displaying the results on the browser. I need to have a print function to print this datagrid directly to the printer.

Is this possible? Does anyone has any examples or existing components for me?


Question by:daveyeo
    LVL 10

    Accepted Solution

    Hi daveyeo

    I found some good link for code to print datagrid

    second link's lgic is nice

    put your datagrid in DIV tag and through javascript print it

    LVL 12

    Expert Comment

    Use but you will see a print dialog box
        <script language=javascript>

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
    IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now