Hunter
2015-03-30T15:19:26Z
I make context menu in code:

iGrid_Quote.ContextMenu = new System.Windows.Forms.ContextMenu();

iGrid_Quote.ContextMenu.MenuItems.Add("Font");
iGrid_Quote.ContextMenu.MenuItems[iGrid_Quote.ContextMenu.MenuItems.Count-1].Click += new System.EventHandler(contextFont_Click);            

iGrid_Quote.ContextMenu.MenuItems.Add("Columns");
iGrid_Quote.ContextMenu.MenuItems[iGrid_Quote.ContextMenu.MenuItems.Count - 1].Click += new System.EventHandler(contextColumns_Click);

iGrid_Quote.ContextMenu.MenuItems.Add("Unsort table");
iGrid_Quote.ContextMenu.MenuItems[iGrid_Quote.ContextMenu.MenuItems.Count - 1].Click += new System.EventHandler(contextUnsort_Click);

How can I programmatically add a separator to the context menu?
Igor/10Tec
2015-03-31T14:37:55Z
It's a question regarding the WinForms ContextMenu  component but not about iGrid.

To add a separator to your context menu, specify "-" as the MenuItem text. Here is the pertinent excerpt from the documentation for the MenuItem  class:

Quote:

Setting the text parameter to "-" causes your menu item to be displayed as a separator (a horizontal line) rather than a standard menu item.