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

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

问题描述

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

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

所以请指导我

谢谢

推荐答案

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

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

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

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