By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,731 Members | 1,060 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,731 IT Pros & Developers. It's quick & easy.

datagrid, template use question

P: n/a
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?
Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
DataGrid Template Columns creation in Runtime (using C#) and DataBinding
http://www.codeproject.com/aspnet/AS...d_creation.asp

Eliyahu

"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
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?

Nov 19 '05 #2

P: n/a
I'm a VB.NET developer, any examples with that?
thanx.

"Eliyahu Goldin" wrote:
DataGrid Template Columns creation in Runtime (using C#) and DataBinding
http://www.codeproject.com/aspnet/AS...d_creation.asp

Eliyahu

"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
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?


Nov 19 '05 #3

P: n/a
Check out these articles,
http://www.dotnetbips.com/displayarticle.aspx?id=84
http://www.dotnetbips.com/displayarticle.aspx?id=85

-Saravana
http://dotnetjunkies.com/WebLog/saravana/
http://www.ExtremeExperts.com

"Chris" wrote:
I'm a VB.NET developer, any examples with that?
thanx.

"Eliyahu Goldin" wrote:
DataGrid Template Columns creation in Runtime (using C#) and DataBinding
http://www.codeproject.com/aspnet/AS...d_creation.asp

Eliyahu

"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:E5**********************************@microsof t.com...
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?


Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.