Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
In Form Load my code is
SqlDataAdapter da = new SqlDataAdapter("select* from tablename",con);
DataTable dt = new DataTable();
da.Fill(dt);
dataGridView1.DataSource = dt;
I want to print all the fields in the table. how can I do this.
Reply me as soon as possible.
Thank you
Posted
Updated 25-Aug-15 1:03am
v2
Comments
Thanks7872 25-Aug-15 6:44am    
Ok. Go ahead. You have a permission.
Andy Lanng 25-Aug-15 7:20am    
5* but he updated the question :P
Thanks7872 25-Aug-15 7:45am    
And not a single line related to his issue.It's still 'CodeForMe' question.

1 solution

 
Share this answer
 
Comments
Mekalamani 28-Aug-15 5:54am    
I used first link. But i want to change the header width in print document. how to change the width.
Thank You
Duncan Edwards Jones 28-Aug-15 6:06am    
Suggest you add that question to the comments article itself so the article author gets it.
Mekalamani 28-Aug-15 6:45am    
Ok Thank You

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900