3

When using the following dialog to add a view, is there anyway you can state in what order you want the fields created?

enter image description here

I tried [Column(Order=0)] ::: [Column(Order=12)], but no joy!

Thanks Paul

Paul Brown
  • 4,926
  • 9
  • 32
  • 44

1 Answers1

4

This is happening because the Details.tt template (as well as all the others) does not do any ordering when generating the markup. More details on how to customize the templates: ASP.NET MVC custom T4 templates for views

Community
  • 1
  • 1
marcind
  • 52,944
  • 13
  • 125
  • 111