How to add TemplateField programmatically

loamousnese

New Member
please consider this code:\[code\]<asp:TemplateField> <ItemTemplate> <asp:LinkButton runat="server" ID="linkmodel" Text='<%#Eval("MenuItem") %>' CommandName='<%#Eval("CommandName") %>' OnCommand="linkmodel_Click" OnClientClick="return confirm('Are You Sure')"> </asp:LinkButton> </ItemTemplate></asp:TemplateField>\[/code\]How to add this column programmatically using C#?thanks
 
Back
Top