DataGridView行高自动调整大小 [英] DataGridView Row Height Autosize

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

问题描述

我正在C#.Net 3.5中使用DataGridView,我想要将所有行的高度设置为自动调整..我已经定义了WrapMode = true但没有获得高度自动调整



所以plz指导我



谢谢

解决方案

DataGridView.AutoSizeRowsMo​​de = DataGridViewAutoSizeRowsMo​​de.AllCells



请参阅 http://msdn.microsoft.com/en-us/library/system.windows.forms。 datagridview.autosizerowsmode.aspx


Hi i am using the DataGridView in the C#.Net 3.5 and i want the height of the all row is set to Autosize.. i have defined the WrapMode = true but not getting the Height Autosize

So plz guide me

Thanks

解决方案

DataGridView.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.AllCells

See http://msdn.microsoft.com/en-us/library/system.windows.forms.datagridview.autosizerowsmode.aspx

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

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