Aspose.Cells.GridWeb.Examples.CSharp.RowsAndColumns.RestrictContextMenu.btnRestrictContextMenu_Click C# (CSharp) Method

btnRestrictContextMenu_Click() protected method

protected btnRestrictContextMenu_Click ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        protected void btnRestrictContextMenu_Click(object sender, EventArgs e)
        {
            // ExStart:RestrictContextMenu
            // Restricting column related operations in context menu
            GridWeb1.EnableClientColumnOperations = false;

            // Restricting row related operations in context menu
            GridWeb1.EnableClientRowOperations = false;

            // Restricting freeze option of context menu
            GridWeb1.EnableClientFreeze = false;
            // ExEnd:RestrictContextMenu
        }
    }