sarada

sarada

  • NA
  • 34
  • 0

how to get the selected and non-selected values of listview to a button

Aug 12 2009 12:25 AM
Hi,
I am working with listview using c#.In the listview,there exists 2 columns namely Profile and Status.Here i am populating listview by retrieving the values from a text file.So,for example.Consider column profile consists of items 1,2,3... and status contains in use,initialise such as

Profile        Status
--------       ------
  1        in use
  2        initialise
  3        initialise
in this way,listview will be existed.Here i have 2 buttons Use,Initialise.When i click on listview items which is of status "initialise" and by clicking on Use button,status must change to state "in use".Totally in listview,there must be a single state "in use".But i am not able to get.Now i want to collect the selected item value in Use button,non-selected item value in initialise button.How is it possible? 

Answers (5)