is there anyway to set a condition such as:
when i open a file, it loads some infos on a ListView, the fifth subitem (should be 4 on index count) is loading text, if it is "ETDF", enable an item in the contextmenustrip, if not, disable it, i tried this inside the contextmenustrip but it just gave me an exeption:
if (listView1.SelectedItems[4].ToString() != "ETDF")
{
editToolStripMenuItem.Enabled = false;
}
else if (listView1.SelectedItems[4].ToString() == "ETDF")
{
editToolStripMenuItem.Enabled = true;
}
am i doing something wrong ?