diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/ICSharpCode.Reporting.csproj b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/ICSharpCode.Reporting.csproj
index 042bd54059..80c6d95cdd 100644
--- a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/ICSharpCode.Reporting.csproj
+++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/ICSharpCode.Reporting.csproj
@@ -132,7 +132,7 @@
-
+
diff --git a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/DataManager/Listhandling/CollectionDataSource.cs b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/DataManager/Listhandling/CollectionDataSource.cs
index 5f4ab7c6d7..3819e3c3bb 100644
--- a/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/DataManager/Listhandling/CollectionDataSource.cs
+++ b/src/AddIns/Misc/Reporting/ICSharpCode.Reporting/Src/DataManager/Listhandling/CollectionDataSource.cs
@@ -26,7 +26,7 @@ namespace ICSharpCode.Reporting.DataManager.Listhandling
Sorted,
Grouped
}
- public class CollectionDataSource:IDataViewHandling
+ public class CollectionDataSource:IDataSource
{
@@ -36,7 +36,22 @@ namespace ICSharpCode.Reporting.DataManager.Listhandling
readonly PropertyDescriptorCollection listProperties;
OrderGroup orderGroup;
+ public CollectionDataSource(IEnumerable list, ReportSettings reportSettings)
+ {
+ if (list == null)
+ throw new ArgumentNullException("list");
+ if (reportSettings == null)
+ throw new ArgumentNullException("reportSettings");
+ baseList = CreateBaseList(list);
+ CurrentList = baseList;
+
+ this.reportSettings = reportSettings;
+ this.listProperties = this.baseList.GetItemProperties(null);
+ orderGroup = OrderGroup.AsIs;
+ }
+
+ [Obsolete("use public CollectionDataSource(IEnumerable list, ReportSettings reportSettings")]
public CollectionDataSource(IEnumerable list, Type elementType, ReportSettings reportSettings)
{
if (list == null)
@@ -44,8 +59,8 @@ namespace ICSharpCode.Reporting.DataManager.Listhandling
if (reportSettings == null)
throw new ArgumentNullException("reportSettings");
- baseList = CreateBaseList(list, elementType);
- //test
+ baseList = CreateBaseList(list);
+
CurrentList = baseList;
this.elementType = elementType;
@@ -57,13 +72,6 @@ namespace ICSharpCode.Reporting.DataManager.Listhandling
- public IndexList IndexList {
- get {
- throw new NotImplementedException();
- }
- }
-
-
public Collection AvailableFields {
get {
var availableFields = new Collection();
@@ -73,23 +81,23 @@ namespace ICSharpCode.Reporting.DataManager.Listhandling
return availableFields;
}
}
- //test
+
public IList