gridview行高 [英] gridview row height

查看:103
本文介绍了gridview行高的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好我想知道如何在Windows应用程序中更改网格视图行高

hi every body I want to know how to change grid view row height in windows application

推荐答案

你应该只是谷歌周围找到大量的例子。 />
您必须使用属性高度数据网格视图。

这将逐行更改所有行高度:

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:
foreach (DataGridViewRow row in    Mydgv.Rows)
{
    row.Height =27;
}



要一次更改所有内容,请使用技巧更改MinimumHeight属性。


To change all in one shot use the trick to change the MinimumHeight property.

Mydgv.RowTemplate.MinimumHeight = 27;





更多样本在其中 [ ^ ]。


Height =16px可以在css中添加。
Height="16px" it can be added in css.


这篇关于gridview行高的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆