Hi,
I want to get the item text of a listview control. Here is the code.
Code: click into code to enlarge
for (int i = 0; i < listview.ItemCount; i++)
{
for (int j = 0; j < listview.ColumnCount; j++)
{
Console.WriteLine("Item[{0}, {1}]= {2}", i, j, cntctList.GetItemText(i, j));
}
}
But all printout is null. I can get the correct ItemCount and ColumnCount. Any body know what's wrong with my code?
Thanks & Regards! |