Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi every body I want to know how to change grid view row height in windows application
Posted

You should simply google around to find tons of examples.
You must use the property Height of data grid view.
This changes all rows height one by one:
C#
foreach (DataGridViewRow row in    Mydgv.Rows)
{
    row.Height =27;
}

To change all in one shot use the trick to change the MinimumHeight property.
C#
Mydgv.RowTemplate.MinimumHeight = 27;


Some more samples here[^].
 
Share this answer
 
v2
Comments
ost3z 19-May-15 13:08pm    
thanks for helping
Height="16px" it can be added in css.
 
Share this answer
 

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