数据网格中的单元格类型 [英] Cell type in data grid

查看:100
本文介绍了数据网格中的单元格类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们可以在数据网格视图中有不同的像元类型吗?像一个是文本框,另一个是复选框,最后一个是组合框.

Can we Have Different cell Types in data Grid View like one is textbox,other is checkbox and last one is combobox.

推荐答案

是的,可以.你可以吗? :-)

由于您甚至都没有指定网格视图的确切类型或应用程序类型,因此几乎不可能获得更详细的信息(嗯,我不想查看.NET中实现的所有网格视图类型),但是您所需要的只是是要阅读与您感兴趣的网格视图类型相关的MSDN帮助页面.

—SA
Yes, we can. Can you? :-)

As you did not even specify exact type of the grid view or your application type, a more detailed information is hardly possible (well, I don''t want to look at all grid view types implemented in .NET), but all you need is to read the MSDN help pages relevant to the grid view type you are interested in.

—SA


是的.

请参考:
在VB.NET中将ComboBox添加到DataGridView [在VB.NET中将CheckBox添加到DataGridView [
Yes we can.

Have a look for reference:
Adding ComboBox to DataGridView in VB.NET[^]
Adding CheckBox to DataGridView in VB.NET[^]


尝试以下链接
哪些可以使您对查询有所了解
根据您的要求使用TemplateFields和Place控件.
Try the Following Link
Which Can give you Some Idea regarding to your Query
Use TemplateFields and Place controls as Per Your Requirement.
http://computermutt.wordpress.com/2009/12/25/creating-a-dropdown-in-an-asp-net-gridview-control/[^]


这篇关于数据网格中的单元格类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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