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

Posted on 2009-12-16
Last Modified: 2012-05-08
Can someone in a nutshell describe 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.
Question by:brgdotnet
    1 Comment
    LVL 14

    Accepted Solution

    have a look at this link.. I think it explains what you are asking:

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Join & Write a Comment

    Creating a CSS block that only applies to printing By default, all of your CSS applies to every possible view of your page - whether on screen, printed, landscape, touch-screen, or whatever.  You can, however, add CSS that only applies under certai…
    Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
    In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
    In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now