I have a contextmenustrip for a DGV. It has a toolstripitem called "ChangeTo" and this branches out into a set of items that are created dynamically based on the config file used. When I run the program that Has Rt-Click -> Change To -> (List of Items)
When I click any item from the drop down list in the contextmenustrip , I want the selected row of the DGV to change to the text in the list...
For this i need to get the 'Text' associated with the toolstripitem. How can i do this? I cant just use toolstripitemname.text coz i wouldnt know the item name until runtime... I tried using
ChangeTotoolstripitem.DropDown.Items...
but i need the index...
This is the function i use when the item is clicked
private void changeTypeToToolStripMenuItem_DropDownItemClicked(object sender, ToolStripItemClickedEventArgs e)