Reader Level:
ARTICLE

How to Print ASP.NET GridView

Posted by Dhaval Khunt Articles | How do I July 09, 2010
The attached project shows how to print a GridView in ASP.NET.
  • 0
  • 0
  • 12099
Download Files:
 

GridView control

Introduction:

We all enjoyed the datalist andthe datagrid controls in Asp.net 1.1. There were thousands of operations that we can perform using datagrid and datalist control. Asp.net 2.0 ships with another data bound templated control which is called Grid View. Grid View has made everything easier for developers. The main changes that I have seen in Asp.net 2.0 is that we don't require a lot of code to achieve tasks but most of the functionality is already provided and built in the control.

Inthis article we will see the GridViewcontrol in action and we will see what type of operations we can perform using this control and how this control is better than the classic datagrid control.

Using the GridView Control:

 If you read my previous articles on DataGridcontrol you might have noticed that we need to write quite a bit ofcode to enable paging, sorting and selecting an item from the datagrid. Using the gridview control I did not even write a single line and got all the three things i.e, paging, sorting and selection for granted.


COMMENT USING