当Dock属性设置为Fill时,如何计算DataGridView列的实际宽度 [英] How to calculate real width of column of DataGridView, when the one has Dock property set to Fill
本文介绍了当Dock属性设置为Fill时,如何计算DataGridView列的实际宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
如何计算DataGridView列的实际宽度(以像素为单位),当将Dock属性设置为Fill。实际上我的意思是在过度扩展/对接过程之后的宽度。
推荐答案
这个怎么样?
colWidth0 = DataGridView.Columns(0).Width;
How about this?
colWidth0 = DataGridView.Columns(0).Width;
这篇关于当Dock属性设置为Fill时,如何计算DataGridView列的实际宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文