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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top