In response to a forum question about how to list the process templates on the server, Tony Edwards, a developer on Work Item Tracking, posted the following code snippet showing how to do it. The TeamFoundationServer object provides a number of services, including one for dealing with process templates.
Here is a simple console program to list the templates. IProcessTemplate has members that return XML – you could bind that to the grid. You would invoke the sample below as follows:
static void Main(string args)
TeamFoundationServer tfs = new TeamFoundationServer(args);
IProcessTemplates templates =
TemplateHeader  headers = templates.TemplateHeaders();
foreach (TemplateHeader header in headers)
If you haven’t built a code sample before, you can find instructions on adding the TFS assemblies to the .NET tab in VS here.