devxlogo

Print a DataGrid Alone from an ASP.NET Web Page

Print a DataGrid Alone from an ASP.NET Web Page

Ever wanted to print a DataGrid alone from an ASP.NET Web page? Put an tag inside the tag does the trick. Here are the steps involved:

  1. Enclose the tag inside the

    tag.
  2. Write a JavaScript function which takes care of printing the content from
    tag.

    Here’s an example:

    ...............

devx-admin

Share the Post: