here is simple example i neet to accomplish i have DataGridView called alyGrid and i have buttong and this Datagrid populated some simple rows ,,, how can i can make a print doucment object to handle printing this rows exactly when i push the button ,
i try to look for that in msdn but no one help me exactly as i want i hope somebody help me please
How can i print a DataGridView with simple button on my form
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Roei BarRank #1,271 · 1.4K reputationPosted Sep 4, 2009, 4:07 AM EDT
i think this is the application you need
http://www.codeproject.com/KB/printing/PrintingOfDataGridView.aspx
its the exact application that you asked for
use it as base for your application
good luck
Master BillaRank #2,229 · 630 reputationPosted Sep 4, 2009, 8:27 AM EDT
A simple sample code here
http://www.c-sharpcorner.com/UploadFile/mgold/HowToPrintaDataGridinCsHARPand.NET11212005060838AM/HowToPrintaDataGridinCsHARPand.NET.aspx
thank you
Hesham Hemdan37 reputationPosted Sep 5, 2009, 2:05 PM EDT
Hesham Hemdan37 reputationPosted Sep 5, 2009, 4:56 PM EDT
thanks anyway