Most of the list related controls have and item list where you can get the specified item in the index.
Try this code snippet..
for (int i = 0; i < lv.Items.Count; i++)
// is i the index of the row I selected?
if (lv.Items[i].Selected == true)
{
//I show here the second field text (SubItems[1].Text) from the selected row(Items[i])
Message.Show(lv.Items[i].SubItems[1].Text);
break;
}
Tom
No.That is not working,because i placed label in that coulmns(dynamically). Actually i want to retrieve text of that label.
Share this page across other social networking sites