views:

95

answers:

0

Hi I've my template column like this

> <asp:TemplateColumn HeaderText="Name"
> SortExpression="Name">
>      <ItemTemplate>
>      <table style="width: 100%">
>     <tr>
>     <td colspan="2">
>     <asp:LinkButton ID="lnkbtnname" CssClass="LabelStyleTxt" Width="200px"
> runat="server"
>      Text='<%#Eval("Name") %>' CommandName="ViewLesson"></asp:LinkButton>
>      </td>
>      </tr>
>      </table>
>     </ItemTemplate>
>     </asp:TemplateColumn>

Now I want to add this to my dynamic datagrid some thing like this

DataGrid dg = new DataGrid();

from here how can I do this?