如何将自定义或自定义控件组合框添加到dataGridView列或单元格 [英] How to add customized or custom control combo box to dataGridView column or cell

查看:427
本文介绍了如何将自定义或自定义控件组合框添加到dataGridView列或单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好

我在使用dataGridViewcomboboxcolumn来显示包含长字符串项目的数据时遇到问题....这就是为什么我创建了一个自定义的combobox custrom控件以根据屏幕大小和字符串长度显示长字符串项目的原因...现在我想添加该组合框(自定义控件)插入到由dataGridViewcomboboxcolumn ..
插入的datagriedview中.
请为此提供帮助....我正在等待回复


仅供参考:问题是使用vss 2005的Windows应用程序


在此先感谢.

Hi all

I had problem with dataGridViewcomboboxcolumn to display data with long string items ....Thats why i created one customised combobox custrom control to display long string items as per screen size and length of the string...Now i want to add that combobox (custom control) in to the datagriedview insted of dataGridViewcomboboxcolumn ..

Please Please help me for this....I am waiting for reply


FYI : problem is with windows application using vss 2005


Thanks in Advance.

推荐答案

使用模板列

http://msdn.microsoft.com/en-us/library/aa479316.aspx [ ^ ]


对于Winforms:
http://msdn.microsoft.com/en-us/library/aa730882 (v = vs.80).aspx [
Use template columns

http://msdn.microsoft.com/en-us/library/aa479316.aspx[^]


For winforms:
http://msdn.microsoft.com/en-us/library/aa730882(v=vs.80).aspx[^]


这篇关于如何将自定义或自定义控件组合框添加到dataGridView列或单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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