Hello,
My business object properties have a attribute DisplayIndex and I want to set the order of my datafields to this displayindex.
DisplayIndexAttribute displayIndexAtt;
if (property.TryGetAttribute<DisplayIndexAttribute>(out displayIndexAtt))
{
e.Order = displayIndexAtt.index;
}
This is working fine. But the problem is that not all properties have the displayindex attribute, so for some properties e.Order is null. I expected that these properties are displayed at the end of the dataform, but instead they are at the beginning.
Is there a way to change this behavior in the way that the properties without an explicit order will be at the end of the Dataform?
My business object properties have a attribute DisplayIndex and I want to set the order of my datafields to this displayindex.
DisplayIndexAttribute displayIndexAtt;
if (property.TryGetAttribute<DisplayIndexAttribute>(out displayIndexAtt))
{
e.Order = displayIndexAtt.index;
}
This is working fine. But the problem is that not all properties have the displayindex attribute, so for some properties e.Order is null. I expected that these properties are displayed at the end of the dataform, but instead they are at the beginning.
Is there a way to change this behavior in the way that the properties without an explicit order will be at the end of the Dataform?