Esempio n. 1
0
        /// <summary>
        /// Fired when the contextmenu is showed
        /// </summary>
        /// <param name="e"></param>
        protected override void OnPopup(EventArgs e)
        {
            this.MenuItems.Clear();

            base.OnPopup(e);

            MenuCollection l_Menus = m_Grid.GetGridContextMenus();

            for (int i = 0; i < l_Menus.Count; i++)
            {
                MenuItems.Add(l_Menus[i]);
            }
        }