Hi All,
I have to display a cell as a normal text cell in a hyperlink column.
This cell should be treat as a normal text and other cell can be treated as a hyperlink.
setting targetURL of cell as empty is not able to resolve this issue.
Any idea ?
Thanks,
In cases where customization is needed, I believe the best approach would be to use Templated columns instead of bound columns - this way you can have fine grained control on the output. e.g.
<igtbl:TemplatedColumn> <CellTemplate> <%# Eval("Name") %> </CellTemplate> </igtbl:TemplatedColumn
<igtbl:TemplatedColumn> <CellTemplate> <a href='<%# Eval("Url")' %><%# Eval("Name") %><a/> </CellTemplate> </igtbl:TemplatedColumn
Hi,
I have to create this template column at runtime from codebehind .
Can you tell me the steps to create and add to grid ?
Thanks.
Hello,
You can try to use code below
protected void Page_Load(object sender, EventArgs e)
{
UltraWebGrid1.Columns.Insert(0, "fromCode");
UltraWebGrid1.Columns[0].Type = Infragistics.WebUI.UltraWebGrid.ColumnType.Custom;
this.UltraWebGrid1.DisplayLayout.Bands[0].Columns[0].Header.Caption = "code-behind:";
}
I hope this helps.