K
KK
Hi
I am showing some data in the datagrid.
I also have a template column.
Inside that template column I am going
to show 1 to 5 link buttons.
The problem i am having is, like in the
traditional ASP, can I use <%%> script blocks
as below ?
<datagrid>
<....>
<asp:TemplateColumn>.....
<ItemTemplate>
<table>
<tr>
<% if (DataBinder.Eval(Container.DataItem, "X") != NULL)%>
<td>draw the linkbutton for X</td>
<% if (DataBinder.Eval(Container.DataItem, "Y") != NULL)%>
<td>draw the linkbutton for Y</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateColumn>
</datagrid>
I am not sure how can i dynamicaly create the link button as shown above
If its value is not null in the dataset.
regards
KK
I am showing some data in the datagrid.
I also have a template column.
Inside that template column I am going
to show 1 to 5 link buttons.
The problem i am having is, like in the
traditional ASP, can I use <%%> script blocks
as below ?
<datagrid>
<....>
<asp:TemplateColumn>.....
<ItemTemplate>
<table>
<tr>
<% if (DataBinder.Eval(Container.DataItem, "X") != NULL)%>
<td>draw the linkbutton for X</td>
<% if (DataBinder.Eval(Container.DataItem, "Y") != NULL)%>
<td>draw the linkbutton for Y</td>
</tr>
</table>
</ItemTemplate>
</asp:TemplateColumn>
</datagrid>
I am not sure how can i dynamicaly create the link button as shown above
If its value is not null in the dataset.
regards
KK