您的位置:首页 > 其它

UltraWebGrid单元格中加入超链接

2009-02-23 13:53 441 查看
private void UltraWebGrid1_InitializeRow(object sender, Infragistics.WebUI.UltraWebGrid.RowEventArgs e)
{
e.Row.Cells[0].Value =
    "<a href="http://www.infragistics.com/go.aspx?id="
    +
    e.Row.Cells[0].Value.toString()
    +
    "" mce_href="http://www.infragistics.com/go.aspx?id="
    +
    e.Row.Cells[0].Value.toString()
    +
    "">" + e.Row.Cells[0].Value.toString() + "</a>";
}

e.Row.Cells[0].Value =
    "< a href='http://www.infragistics.com/go.aspx?id="
    +
    e.Row.Cells[0].Value.toString()
    +
    "' title='" + e.Row.Cells[1].Value.toString()
    +
    '">" + e.Row.Cells[0].Value.toString() + "</a>";
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: