自定义控件列在数据网格视图vb.net 2010中不可见 [英] Custom Control Column Not Visible In Data Grid View vb.net 2010
问题描述
我有一个datagridview和一个自定义控件。
I have a datagridview and a custom control.
我在datagridview中将此自定义控件添加为datagridviewcolumn [通过示例datatimepicker列来自MSDN]。
i add this custom control in datagridview as datagridviewcolumn [Through example datatimepicker column From MSDN].
当datagridview加载,然后显示所有值但自定义控件不可见。
when datagridview load then all value show but custom control not visible.
自定义控件在我编辑单元格时可见。
custom control visible when i edit cell.
我设置为自定义控件的属性是可见的,因为datagridview是readonly = true。
Which Property i set to custom control visible normaly because datagridview is readonly=true.
生活艺术是给予的艺术
推荐答案
我不确定你是否在引用这个msdn例子:
I'm not sure if you are referring this msdn example:
如何:Windows窗体DataGridView单元格中的主机控件
如果没有仔细检查并与您的步骤进行比较。
If not double check and compare with your steps.
如果您需要更多帮助,请发布截屏和代码验证。
And if you need futher assistance please post screen shots and code to verify.
这篇关于自定义控件列在数据网格视图vb.net 2010中不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!