hello.
how could i increase the height of all coloumns of datagridview.??
thx for help.
How to increase height of datagridview columns
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Prabhu RajaRank #861 · 2.6K reputationPosted Sep 14, 2011, 4:50 AM EDT
try this
for(int i=0;i
this.Gridvew1.Columns[ i ].Width = 201 ; // Put Size Here
}
------------------------------------------
If this post helps you, then mark as "Correct Answer"
Thank You
Vijay YadavRank #1,637 · 943 reputationPosted Sep 14, 2011, 3:15 AM EDT
Why you want to increase height of the datagridview, you can simply increase the font size and if you want to increase the width in order to view the full character then use
datagridivew1.Columns["Column Name"].Width = 100;
Or else, can you explain what exactly you want to do?
Priya LingeRank #785 · 2.9K reputationPosted Sep 14, 2011, 3:30 AM EDT
Please check this, will help you to increase the size of column.
http://www.codeproject.com/KB/printing/printingdatagridview.aspx
Hope this will help you.
Thanks.