Click here to Skip to main content
15,908,675 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Updated 24-Mar-11 23:17pm
v3

1 solution

You can use IEditableCollectionView.

Here are a few links that can be of your help :

Microsoft sample[^]

http://www.codeproject.com/KB/database/IEditableObject.aspx[^

Simple Example[^]

Another[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 25-Mar-11 12:51pm    
Good enough for such a simple Question :-), my 5.
--SA
Tarun.K.S 25-Mar-11 13:08pm    
Yeah it should help him for sure!
Thanks a lot SA! :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900