Aspose.Cells.GridWeb.Examples.CSharp.Worksheets.AddHyperlinks.GridWeb1_CellCommand C# (CSharp) Method

GridWeb1_CellCommand() protected method

protected GridWeb1_CellCommand ( object sender, Aspose e ) : void
sender object
e Aspose
return void
        protected void GridWeb1_CellCommand(object sender, Aspose.Cells.GridWeb.CellEventArgs e)
        {
            // Checking the CellCommand of the hyperlink
            if (e.Argument.Equals("Click"))
            {
                // Accessing the reference of the worksheet that is currently active
                GridWorksheet sheet = GridWeb1.WorkSheets[GridWeb1.ActiveSheetIndex];

                // Adding value to "C8" cell
                sheet.Cells["C8"].PutValue("Cell Command Hyperlink Clicked");

                // Resize the column to display message nicely
                sheet.Cells.SetColumnWidth(2, 250);
            }
        }
        // ExEnd:HandleCellCommandHyperlinkEvent