Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Order of fields in Dynamic Data?

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 !

like image 802
Cyril Bioley Avatar asked Nov 26 '08 19:11

Cyril Bioley


1 Answers

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; }
like image 158
Ash Machine Avatar answered Sep 28 '22 09:09

Ash Machine