Hi,
I would like to create a Grid using Hierarchy programmatically
radGridView.ChildTableDefinitions.Add(
new
GridViewTableDefinition());
var g =
new
FrameworkElementFactory(
typeof
(TextBlock));
g.SetValue(TextBlock.TextProperty,
"TEST"
);
DataTemplate dt =
new
DataTemplate();
dt.VisualTree = g;
radGridView.HierarchyChildTemplate = dt;
I can developp/reduce hierarchy but nothing in details. I did the same into xaml code with success.
How to code correctly datatemplate ?
Thanks
Regards
Eric