Hello,
When using event to customize a DataForm, we can not change the editor type and the group at the same time
in the code example below DataFormItem can not be the MultilineText and belong to Group Details.
Line of code e.DataFormItem.Editor = "MultilineText"; hide the Details group. It's really strange.
private void DataForm_AutoGeneratingDataFormItem(object sender, AutoGeneratingDataFormItemEventArgs e)
{
if (e.DataFormItem != null)
{
if (e.DataFormItem.Name == "Code" || e.DataFormItem.Name == "Name")
e.DataFormItem.GroupName = "General";
else
{
e.DataFormItem.GroupName = "Details";
e.DataFormItem.Editor = "MultilineText";
}
}
}