How does one go about programatically building a TemplateColumn object and adding it to a DataGrid. I know how to add it, but not how to build the contents of the TemplateColumn. There are no useful looking methods on the ITemplate the column class exposes.
A:
You can use the CompiledTemplateBuilder Class.
Here is an example:
http://iridescence.no/post/Using-Templated-Controls-Programmatically.aspx
Espo
2008-09-18 09:58:56