protected void btnUpdateHyperlinks_Click(object sender, EventArgs e)
{
// ExStart:AccessHyperlinks
// Accessing the reference of the worksheet that is currently active
GridWorksheet sheet = GridWeb1.WorkSheets[GridWeb1.ActiveSheetIndex];
// Accessing a specific cell that contains hyperlink
GridCell cell = sheet.Cells["B1"];
// Accessing the hyperlink from the specific cell
GridHyperlink link = sheet.Hyperlinks.GetHyperlink(cell);
if (link != null)
{
// Modifying the text and URL of hyperlink
link.TextToDisplay = "Aspose.Blogs";
link.Address = "http://www.aspose.com/Community/Blogs";
}
// ExEnd:AccessHyperlinks
}