I have this partial code:
DataGridViewComboBoxColumn cbC = new DataGridViewComboBoxColumn();
cbC.HeaderText = "Code:";
cbC.Name = "code";
cbC.ContextMenuStrip = mymenu;(is a ContextMenuStrip)
I click with right mouse button on the row but the menu not showing, what's wrong?
In your DataGridView properties, there is an option called "ContextMenuStrip" (at "Behavior"). Select your ContextMenuStrip and it should work.
Alternatively you can add this line of code in the designer (not recommended!):
EDIT
This way the ContextMenu is everywhere. You can add it for each column seperately by right-clicking the DataGridView (in the editor) and then "Edit Columns...".
As before you can add it in the designer via code (also not recommended):