Hi!
In EntityPropertyComparer.cs, we find the following method:
public int Compare(object x, object y)
{
object a = x.GetType().GetProperty(PropertyName).GetValue(x, null);
object b = y.GetType().GetProperty(PropertyName).GetValue(y, null);
if ( a != null && b == null )
return 1;
if ( a == null && b != null )
return -1;
if ( a == null && b == null )
return 0;
return ((IComparable)a).CompareTo(b);
}
Would it be possible to modify this method's implementation so that it would possible to use a PropertyName like 'CustomerIDSource.CustomerName'. I guess, what would have to be done is to split the Property name on the period character and find the type and value of the last object (CustomerName in this case). I don't have any experience with reflexion. Sorry for my ignorence.
If such a comparer would be feasible, would it be possible then to get a GridView to use it?
Cheers!
JF