Order of fields in Dynamic Data?

Cyril Bioley picture Cyril Bioley · Nov 26, 2008 · Viewed 7.3k times · Source

Does anybody know if it is possible to choose the order of the fields in Dynamic Data (of course, without customizing the templates of each table) ?

Thanks !

Answer

Ash Machine picture Ash Machine · May 20, 2010

In .NET 4.0, using the 4.0 release of the Dynamic Data dll, you can set data annotations like so:

[Display(Name = " Mission Statement", Order = 30)]
public object MissionStatement { get; set; }

[Display(Name = "Last Mod", Order = 40)]  
public object DateModified { get; private set; }