编辑列表视图中的特定列 [英] editing particular column in listview
本文介绍了编辑列表视图中的特定列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的应用程序中有一个ListView
,其中有四列.我要编辑其中两个,一个是文本字段,另一个是日期字段.其他两个不应被编辑.而且我想在EditToolStripMenuItemClick
事件或任何其他事件(可能)中编写代码.
能做到吗?
我通过此链接 http://www.codeproject.com/KB/list/ListViewCellEditors.aspx [ ^ ],但找不到满意的答案.
I have a ListView
in my application with four columns. I want to edit two of them, one is text field and other one is date field. The other two should not be edited. And I want to write code in EditToolStripMenuItemClick
event, or any other event (possibly).
Can it be done?
I went through this link http://www.codeproject.com/KB/list/ListViewCellEditors.aspx[^] but could not find satisfactory answer.
推荐答案
您可以使用IEditableCollectionView
.
以下是一些可以帮助您的链接:
Microsoft示例 [ http://www.codeproject.com/KB/database/IEditableObject.aspx [ ^
简单示例 [ ^ ]
另一个 [
You can useIEditableCollectionView
.
Here are a few links that can be of your help :
Microsoft sample[^]
http://www.codeproject.com/KB/database/IEditableObject.aspx[^
Simple Example[^]
Another[^]
这篇关于编辑列表视图中的特定列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文