更改datagridview的行高 [英] Changing the row height of a datagridview

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

问题描述

如何更改DataGridView的行高?

How can I change the row height of a DataGridView?

我设置了属性值,但高度没有变化,设置此属性之前必须检查其他属性一个

i set the value for the property but height doesnt changed,anyother property has to be checked before set this one

推荐答案

您需要设置RowTemplate的 Height 属性:

You need to set the Height property of the RowTemplate:

var dgv = new DataGridView();
dgv.RowTemplate.Height = 30;

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

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