CellTemp.Append("<DataTemplate "); CellTemp.Append("xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' >"); CellTemp.Append("<TextBox Text="{Binding MyProperty, Mode=TwoWay}" KeyDown="TextboxEdit_KeyDown></TextBox> "); CellTemp.Append("</DataTemplate>"); and I succeed doing : gt = new DataGridTemplateColumn();
An unhandled exception ... Code : 4004 Category : ManagedRuntimeError Message : System.TypeInitializationException: The type initalizer for 'Missing template. Cannot Initialize.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)