T
tk
I am having problems trying to create these template columns dynamically.
'<Columns>
' <asp:TemplateColumn>
' <ItemTemplate>
' <asp:LinkButton runat="server" Text="Edit" CommandName="Edit"
CausesValidation="false"></asp:LinkButton>
' </ItemTemplate>
' <EditItemTemplate>
' <asp:LinkButton runat="server" Text="Update"
CommandName="Update"></asp:LinkButton>
' <asp:LinkButton runat="server" Text="Cancel" CommandName="Cancel"
CausesValidation="false"></asp:LinkButton>
' </EditItemTemplate>
' </asp:TemplateColumn>
'</Columns>
I want to take the above HTML code and create the template Columns
Dynamically in the code behind which would be VB.
I have tried Microsofts
example(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbc
on/html/vbtskcreatingtemplatesprogrammaticallyindatagridcontrol.asp),
It keeps giving me this error:
Compiler Error Message: BC30002: Type 'ITemplate' is not defined.
Source Error:
Line 654:
Line 655
ublic Class DataGridTemplate
Line 656: Implements ITemplate
Line 657: Dim templateType As ListItemType
Line 658: Dim columnName As String
Can anyone help me. I Program in VB.NET
'<Columns>
' <asp:TemplateColumn>
' <ItemTemplate>
' <asp:LinkButton runat="server" Text="Edit" CommandName="Edit"
CausesValidation="false"></asp:LinkButton>
' </ItemTemplate>
' <EditItemTemplate>
' <asp:LinkButton runat="server" Text="Update"
CommandName="Update"></asp:LinkButton>
' <asp:LinkButton runat="server" Text="Cancel" CommandName="Cancel"
CausesValidation="false"></asp:LinkButton>
' </EditItemTemplate>
' </asp:TemplateColumn>
'</Columns>
I want to take the above HTML code and create the template Columns
Dynamically in the code behind which would be VB.
I have tried Microsofts
example(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbc
on/html/vbtskcreatingtemplatesprogrammaticallyindatagridcontrol.asp),
It keeps giving me this error:
Compiler Error Message: BC30002: Type 'ITemplate' is not defined.
Source Error:
Line 654:
Line 655
Line 656: Implements ITemplate
Line 657: Dim templateType As ListItemType
Line 658: Dim columnName As String
Can anyone help me. I Program in VB.NET