private void AddCellCommandHyperlinks()
{
// ExStart:AddCellCommandHyperlinks
// Accessing the reference of the worksheet that is currently active
GridWorksheet sheet = GridWeb1.WorkSheets[GridWeb1.ActiveSheetIndex];
// Adding hyperlink to the worksheet
int linkIndex = sheet.Hyperlinks.Add("B8", "");
GridHyperlink link1 = sheet.Hyperlinks[linkIndex];
// Setting the cell command, tool tip and image URL for the hyperlink
link1.Command = "Click";
link1.ScreenTip = "Click Here";
link1.ImageURL = "../Images/button.jpg";
// Resize the row to display image nicely
sheet.Cells.SetRowHeight(7, 30);
// ExEnd:AddCellCommandHyperlinks
}