How to print contents of DataGridView

S

Sharon

Hi All.
Is there a way to print the content of DataGridView,
Without using Graphics.DrawString on every row?
Thanks,
Sharon.
 
N

Nicholas Paldino [.NET/C# MVP]

Sharon,

I don't believe that this is possible either. Rather, if you want to
print the contents out, you will have to cycle through the contents of the
grid, and make calls to the graphics primitives yourself.
 
S

Sharon

...... back to the drawing board.
But I assume that the DataGridView,
already contains some graphic representation of its content.
And if it does, isn't there a way to get it?
Thanks, Sharon.

Nicholas Paldino said:
Sharon,

I don't believe that this is possible either. Rather, if you want to
print the contents out, you will have to cycle through the contents of the
grid, and make calls to the graphics primitives yourself.


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Sharon said:
Hi All.
Is there a way to print the content of DataGridView,
Without using Graphics.DrawString on every row?
Thanks,
Sharon.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top