Add image button/hyperlink to gridweb column

Is it possible to add an image button into a gridweb column at runtime? If so, how is it done?

Thanks!


I figured it out:

Here is the code:

Dim sheet As Aspose.Grid.Web.Worksheet = GridWeb1.WebWorksheets(0)

sheet.DataSource = datesethere

sheet.Name = "My Sheet"

sheet.CreateAutoGenratedColumns()

sheet.DataBind()

sheet.Cells.InsertColumn(0)

sheet.Cells.SetColumnCaption(0, "View")

Dim hl As Aspose.Grid.Web.Data.Hyperlink = sheet.Hyperlinks.AddHyperlink(0, 0)

hl.ImageUrl = "images/someimage.gif"

hl.ActionType = Data.HyperlinkActionType.CellCommand

sheet.Cells(0, 0).Style.HorizontalAlign = HorizontalAlign.Center