we have the following structure of class definition for the datasource:
public interface IActivityInstanceBase : IDataLayerBase
{
string Id { get; set; }
DateTime ExecutionDate { get; set; }
DateTime PlannedDate { get; set; }
.....
string ActivityInstanceName { get; set; }
string ParentId { get; set; }
}
public interface IActivityInstance : IActivityInstanceBase, IExportable, IFileAddable
{
IMaintenanceGroup MaintenanceGroup { get; set; }
IActivity Activity { get; set; }
IActivityStatus Status { get; set; }
.....
string MaintenanceGroupName { get; set; }
string ParentGroupName { get; set; }
}
Datasource is of type IActivityInstance which inherits IActivityInstanceBase (connected over needdatasource event)
I have to group by a field from the base class (ParentId) which is not possible (Exception field not found in datasource).
In the definition of grid columns i can also use fields from the base class, only in the group by expression it isn“t possible.
Any ideas how to solve that?
regards,
Stefan