I am having problems with aggregates not behaving as expected with "virtual" properties which do not exist in the type over which the aggregate function operates. The property is attached to the type using a type descriptor and redirected to an actual implementation. The Grid complains that there is no method compatible with the supplied arguments, even if the virtual property is of type int and the aggregate function does indeed exist.
This is what I believe is going on. When the grid fetches the type of the associated property to find out whether there is a function compatible with it, it gets the metadata via reflection directly instead of going through the extensible TypeDescriptor [1].
[1] - http://msdn.microsoft.com/en-us/library/ms171819.aspx
This is what I believe is going on. When the grid fetches the type of the associated property to find out whether there is a function compatible with it, it gets the metadata via reflection directly instead of going through the extensible TypeDescriptor [1].
[1] - http://msdn.microsoft.com/en-us/library/ms171819.aspx