473,385 Members | 1,518 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to print contents of DataGridView

Hi All.
Is there a way to print the content of DataGridView,
Without using Graphics.DrawString on every row?
Thanks,
Sharon.
Nov 16 '05 #1
2 12318
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]
- mv*@spam.guard.caspershouse.com

"Sharon" <ta*******@void.null> wrote in message
news:eF****************@TK2MSFTNGP09.phx.gbl...
Hi All.
Is there a way to print the content of DataGridView,
Without using Graphics.DrawString on every row?
Thanks,
Sharon.

Nov 16 '05 #2
...... 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 [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:ut**************@TK2MSFTNGP10.phx.gbl...
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]
- mv*@spam.guard.caspershouse.com

"Sharon" <ta*******@void.null> wrote in message
news:eF****************@TK2MSFTNGP09.phx.gbl...
Hi All.
Is there a way to print the content of DataGridView,
Without using Graphics.DrawString on every row?
Thanks,
Sharon.


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bob | last post by:
I have relational integrity set up in my sql server 2005 database that prevents cascading deletes in some cases. I'm using a bound datagrid view and a tablenavigator. When I click the delete...
3
by: Arno Au | last post by:
Hi, how can I print the content of a datagridview in vb 2005? thanks for answers, Arno
3
by: Marc | last post by:
Hallo, can someone tell me, how i could print a datagridview? I found in the whole net nothing :( bye
7
by: Arne Beruldsen | last post by:
in vbnet2005 I have a datagridview. When the user clicks on a row...I would like the contents of certain cells to populate a textbox. To do this...i need to be able to refer to the row and...
0
by: Scotty | last post by:
Hi, Hope someone can help me I have a datagridview sith data Code below works fine if I print the data if there is only 1 page (without using '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! If...
2
by: Scotty | last post by:
Hi, Hope someone can help me I have a datagridview I want to print Code below works fine if I print the data if there is only 1 page (without using hasmore pages...
7
devikacs
by: devikacs | last post by:
i am new to C# .net. i am trying to print the contents of a sql table on a form using datagridview. i've first printed the values of a select command on the datagridview. on clicking a button, the...
1
OuTCasT
by: OuTCasT | last post by:
Can some one please tell me if this is the correct way to print data from a gridview because it gives me an error Private PrintGrid As DataGridViewPrint Private Sub btnPrint_Click(ByVal sender...
0
by: murali007 | last post by:
Hi, i have to print datagridview content and some text using c# in windows application.. iam able to print datagridview print seperate and text seperate print .. but iam not able to print both...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.