Hello,
Without converting into template column can we do this?
Thanks
Mlanda T
In the RowDataBound event above... you can just use this syntax:
dim myLink as HyperLink = e.Row.Cells(indexOfTheHyperLinkColumn).Controls(0)
if myLink isnot nothing then
myLink.Enabled = (session["role"] = "Admin")
end if
NOTES:
indexOfTheHyperLinkColumn based on the position of the column in the gridview. First index is 0.
Please just check whether the HyperLink control is Controls(0) or otherwise Controls(1)... dont remember which is which
Without converting into template column can we do this?
Thanks