I am creating a DataForm from dynamic data (so I can t create the columns in the xaml), I currently create columns for my DataGrid (I have not worked out how I can create a button + event in a colomn yet)
foreach (var item in headings.Entities)
{
theDataGrid.Columns.Add(
new DataGridTextColumn
{
Header = item.Label,
Binding = new Binding(item.LocalName)
});
}
I cannot see any methods to add fields to a DataForm at runtime, however...