how to print grid view?

hi friends,
i am using visual studio 2005. i display some records which are retrived from sqlserver database into the data grid view. above gridview one button is there which is used to print the records of data grid view . now when i click that print button it should print the data grid view records. how to do this? plz reply soon with source code..
[357 byte] By [tj_amarnath] at [2007-11-20 9:13:01]
# 1 Re: how to print grid view?
Your can either use the PrintDocument class or just use the Copy method of the DataGridview control to Copy the contents to Clipboard thne paste them on Excel using the code and print the excel document.
Shuja Ali at 2007-11-9 11:34:07 >