#12 GenerateColumns Should Allow or Disallow Fields

closed
nobody
Design (6)
5
2014-04-25
2009-12-23
Thracx
No

Is there any particular reason why GenerateColumns(Type type) (Line 65) only reflects over Properties and not Fields (aside from encouraging a separation between model and view)? Regardless, it should either be changed to also check for Fields, or the OLVColumnAttribute should be changed to restrict what it can decorate (i.e. [AttributeUsage(AttributeTargets.Property)].

I would prefer to allow Fields to be used, since the user's model isn't separated completely from their view if they are using these attributes anyway.

Discussion

  • Phillip Piper

    Phillip Piper - 2014-04-25
    • status: open --> closed
    • Group: --> Next_Release_(example)
     
  • Phillip Piper

    Phillip Piper - 2014-04-25

    The AttributeUsage has been restricted to just properties.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks