troubleshooting Question

Use of Item Templates in a GridView to activate different Asp.net controls(Edit box, etc)

Avatar of brgdotnet
brgdotnetFlag for United States of America asked on
CSSASP.NET
1 Comment1 Solution933 ViewsLast Modified:
Can someone in a nutshell describe Asp.net templated controls in a GridView control?
When I edit a GridView template in design view with the fly out menu, I see 5 different
types of Templates being listed.

Item Template
Edit Template
Alternating Item template
Header Template
Footer Template

Is the gist of it that you can have different controls in a GridView column, and then display/
activate those controls as needed?

For example suppose you have a column named "Status"; in that column for the Item Template you will have a label control.In the Footer Template for "Status" you will have an edit control.


 And then as deemed necessary you can display the edit control as needed instead of the label control in column status?

I can't find any good documentation on using Templated controls so a good homegrown explanation would work great or a good article on the web that someone could recommend. Anyway, I need help understanding how to take advantage of this great technology.
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 1 Comment.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros