I am trying to change the text of a ToolStripMenuItem before the menu is displayed after a right-click. I would like to include the DataGridView row KEY, so that it's more clear to the user what line they actually clicked. I've attempted a number of different methods with no success.
(Visual Studio 8 - vb)
ToolStripMenuItem1 = 'Edit Item 1007'
ToolStripMenuItem2 = 'Delete Item 1007'
not sure what method to use here: ToolStripMenuItem1.text = "Edit Item " & row_item
Private Sub DataGridView1_CellMouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellMouseEventArgs) Handles DataGridView1.CellMouseDown
cell_row = e.RowIndex
cell_col = e.ColumnIndex
row_item = DataGridView1.Rows(e.RowIndex).Cells("ItemNo").Value