For example:
[Custom("Index", "1")]
public string Subject {}
[Custom("Index", "2")]
public string CreatedOn {}
Currently, it is ignored.
Thanks,
Dan
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hello Dan,
Now, you can set the order of editors in a Detail View and columns in a List View, by setting indexes for a business class properties. The Custom attribute specifying an index is now taken into account when generating Views for a business class.
Note that in a List View, some columns will be invisible, and the specified column order will be changed. In addition, in a Detail View, the editors are grouped according to particular rules, by default. So, setting indexes in code may help determine the order of the editors, if only you are sure that they will be displayed within one group. To learn about the rules used to generated the Detail View Items layout, refer to this link: Detail View Items Layout.
Thanks, Mary.
To improve the implemented behavior, we've added the Index attribute. So, you don't have to use the Custom attribute to specify the target property's index in a Detail View. For details on how detail view items are arranged now, refer to the Detail View Items Layout topic and IndexAttribute class description in XAF documentation.
Thanks, Mary.