Forum Discussion

bhaugurav's avatar
bhaugurav
Occasional Contributor
16 years ago

Need help to get cell value in multi-column WPF listview control

Hi,

I have a WPF listbox, and I want to read the value in particular cell. Say for e.g. we have multi-column list view having JobName and JobStatus columns. We have two items in it. Now given a job name of second item(row) in list view, how would I get the JobStatus. For .Net controls we can have this using get_item(columnIndex,rowIndex) method. But I am not getting any help from this front. I just able to get ColumnIndex(but not row index). Can anyone give me some clue?



Thanks,

Bhausaheb Gurav

4 Replies

  • bhaugurav's avatar
    bhaugurav
    Occasional Contributor
    If someone have problem in understanding problem..please let me know.
  • Hello Bhausaheb,


    I suggest that you use the Items property of the ListView control to get a collection of list items. Once you get the collection, you can enumerate the items and get values of the JobStatus column.