C# ListView Question

  • Thread starter Thread starter Jason Huang
  • Start date Start date
J

Jason Huang

Hi,

I have a ListView MyListView, which now has 5 rows and 3 columns.
Saying int m, int n represents row 4 and column 2.
How do I retrieve these two indexes, so that m will be 4 and n will be 2.
Thanks for help.

Jason
 
Thanks Morten.
I have to make myself more clear...
I'm not trying to retrieve the value of row 4, column 2.
What I want to is to return the '4' and '2'.
Any help will be appreciated.

Jason


Morten Wennevik said:
Hi Jason,

strign s = MyListView.Items[m].SubItems[n].Text;


Hi,

I have a ListView MyListView, which now has 5 rows and 3 columns.
Saying int m, int n represents row 4 and column 2.
How do I retrieve these two indexes, so that m will be 4 and n will be 2.
Thanks for help.

Jason
 
Back
Top