protected
void
SearchGrid_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridDataItem)
{
GridDataItem dataItem = e.Item
as
GridDataItem;
GridTableCell cell = dataItem[
"Gender"
]
as
GridTableCell;
LinkButton linkBtn = cell.Controls[0]
as
LinkButton;
if
(
string
.IsNullOrEmpty(linkBtn.Text))
{
linkBtn.Visible =
false
;
// or just hide it from screen readers like JAWS
// linkBtn.Attributes.Add("aria-hidden", "true");
}
}
}
This mainly happens when JAWS Links List is opened (Insert+F7), it shows up all the href mentioning the href value as is.
--
Sunil