Hi,
you'd need to create templates
a) by loading them from user control files (Page.LoadTemplate method)
or
b) create templates by having classes that implement ITemplate interface.
See an article about it here:
http://www.tripleasp.net/tutorial.aspx?NavID=27

Signature
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke
> Hi,
> I'd like to create TemplateColumn at runtime.
[quoted text clipped - 10 lines]
> bc2.HeaderText = "Number";
> myDataGrid.Columns.Add(bc2);