datagrid, template use question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If I don't want to put my code in the aspx file itself, thus, putting the
code in the code behind how do I use the Template Control for a datagrid?

All the examples I've found show it used on the same page, i.e.
<itemTemplate>
<%# Container.DataItem("xzy") %>
</itemTemplate>

How can this be represented using the code-behind?
 
Back
Top