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.
Log in to post a comment.