This is a migrated thread and some comments may be shown as answers.

underline

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
beeta one
Top achievements
Rank 1
beeta one asked on 24 Aug 2012, 11:53 AM
hiii,,
how can i remove the underline in hyperlinkcolumn?

regards
hash

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Aug 2012, 12:00 PM
Hi,

Try the following code to remove underline in hyperlinkcolumn.
C#:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
  {
    if (e.Item is GridDataItem)
      {
          GridDataItem item = (GridDataItem)e.Item;
          HyperLink link = (HyperLink)item["GridHyperLinkColumn"].Controls[0];
          link.CssClass = "remove";
      }
  }
CSS:
<style type="text/css">
 .remove 
  {
    text-decoration:none;
  }
</style>

Thanks,
Shinu.
Tags
Grid
Asked by
beeta one
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or