Click here to Skip to main content
15,028,614 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I have designed a control which contain two list view.
Added a button. on the click of button items from 1st list gets added to another.
Now after adding to second list i want to disable from 1st list so that user cant add again

Plz help, Thanx in advn.
Posted
Updated 28-Dec-11 18:17pm
v2

Since it's a single select mechanism, another possibility would be to use checked list view. This way you wouldn't need two separate list views but the user would check/uncheck the items that are included.
   
Comments
Govind K 29-Dec-11 5:31am
   
ok but i want it in listviews details view
Wendelius 29-Dec-11 13:35pm
   
That shouldn't be a problem, just define CheckBoxes to true. For an example, see: http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.checkeditems.aspx[^]
Remove it from the first list instead of trying to disable it. That's the standard behavior.
   
Comments
Govind K 29-Dec-11 5:29am
   
but i want as mentioned above
is there any way

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