UltraWebGrid单元格中显示链接

两种方式:

 

//第一种 Grid.Columns.FromKey("filename").Type = ColumnType.HyperLink; protected void Grid_InitializeRow(object sender, RowEventArgs e) { e.Row.Cells[10].TargetUrl = ...... } //第二种 protected void Grid_InitializeRow(object sender, RowEventArgs e) { e.Row.Cells[10].Value = (String.IsNullOrEmpty(e.Row.Cells[10].Text)) ? null : "<a href='" + fullpath + "'target='_blank' >" + e.Row.Cells[10].Text + "</a>"; }

你可能感兴趣的:(object,null)