How to Print ASP.NET GridView
The attached project shows how to print a GridView in ASP.NET.
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
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.