Hi all,

I would liek to move all of the code that binds a template column for my datagrid control from the aspx file to the code behind file aspx.vb. I'm not sure of the exact syntax for doing this. All of the examples I have seen include the asp code along with the html e.g.

<Columns>
<asp:TemplateColumn HeaderText="Example">
<ItemTemplate>

<%# Container.DataItem("Example") %>

</asp:TemplateColumn>
<Columns>

It is the Container.DataItem code I want to move to the aspx.vb file, is this possible?

Thanks