在C#精简框架NET 2.0连接键列的DataGrid [英] Attach button to column datagrid in C# Compact Framework .Net 2.0

查看:231
本文介绍了在C#精简框架NET 2.0连接键列的DataGrid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经有4列,第3的数据,最后一个需要有一个按钮,允许该行要删除的数据网格。我已经寻找一个商品2小时了,并没有发现任何方式用于.NET 2.0为此在C#Compact Framework的。任何意见将是巨大的。

I have a datagrid which has 4 columns, the first 3 are data and the last one needs to have a button in it to allow for the row to be deleted. I have searched for a good 2 hours now and haven't found any way to do this in the C# Compact Framework for .Net 2.0. Any advice would be great.

要澄清,我正在寻找一个答案,按钮是否可以添加在C#Compact Framework的一个DataGrid列的一部分。 .NET 2.0。如果有可能的例子将是巨大的和指向上的代码是如何工作的甚至更好的细节资源。

To clarify, I am looking for an answer as to whether buttons can be added as part of a column in a DataGrid in C# Compact Framework .Net 2.0. If it is possible examples would be great and pointers to resources on the specifics of how the code works even better.

DataGridViewButtonColumn在CF 2.0不起作用

DataGridViewButtonColumn does not work in CF 2.0

修改:好吧,我发现这样做的方式,但它是相当复杂的,需要过度骑DataGridTextBoxColumn,还有用VB微软的例子脚本可以适用于这个目的,希望这有助于任何人的未来!链接: http://support.microsoft.com/kb/318581

EDIT: Okay I have found a way of doing this but it is quite complicated, you need to over-ride the DataGridTextBoxColumn, there is a microsoft example with VB script that can be adapted for this purpose, hope this helps anyone in future! Link: http://support.microsoft.com/kb/318581

推荐答案

据我知道你说的,CF2.0不允许添加按钮列。的这里是,我发现,我正在寻找的方式。希望这有助于。

As far as I know and you said, CF2.0 doesn't allow to add button column. Here is the way that I found as I was searching. Hope this helps.

这篇关于在C#精简框架NET 2.0连接键列的DataGrid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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