Comment ajouter TemplateField par programme
veuillez considérer ce 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>
Comment ajouter cette colonne par programmation à l'aide de C#?
grâce
source d'informationauteur Arian
Vous devez vous connecter pour publier un commentaire.
Ceci pourrait aider à obtenir commencé:
Mais:
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.templatefield.templatefield.aspx