And then I use this code to print.
Code
Bitmap bm = new Bitmap(this.dataGridView1.Width, this.dataGridView1.Height);Code
dataGridView1.DrawToBitmap(bm, new Rectangle(0, 0, this.dataGridView1.Width, this.dataGridView1.Height));Code
e.Graphics.DrawImage(bm, 0, 0);Code
Code
This one only can print non-scrolled data. This cannot print if the gridview has many data.Code
Can anybody help me in my problem???Code
Thanks a lot for viewing my question.

Raja TRank #685 · 3.5K reputationPosted Sep 22, 2015, 9:01 PM EDT