ActiveReports 18 .NET Edition
MESCIUS.ActiveReports Assembly / GrapeCity.ActiveReports.Data Namespace
Inheritance Hierarchy
In This Topic
    GrapeCity.ActiveReports.Data Namespace
    In This Topic
    The GrapeCity.ActiveReports.Data namespace contains the classes used for section report data binding in section reports.
    Classes
     ClassDescription
    ClassRepresents a section report data source based on an CSV document.
    ClassDB data source - allows to connect through custom database providers.
    ClassThe Field class represents any data field available for data binding in section reports.
    ClassThe FieldCollection class manages the data binding fields used in the section report.
    ClassRepresents a section report data source based on a JSON document.
    ClassRepresents a section report data source based on the IDataRecord and IDataReader members of the .NET Framework.
    ClassODBC data source - allows to connect through ODBC driver.
    ClassRepresents a section report data source based on the OleDb ADO.NET data provider.
    ClassRepresents a section report data source based on the SqlDB ADO.NET data provider.
    ClassRepresents a section report data source based on an XML document and an XPath pattern to select the XML nodes used as records in the data source.
    Interfaces
     InterfaceDescription
    InterfaceWrapper over System.Collections.IList interface to use it as data source: GrapeCity.ActiveReports.SectionReport.DataSource. This should be used only if performance of current implementation is not enough. This snippet shows how to implement the interface with https://www.nuget.org/packages/FastMember.Signed/1.5.0 Note: Product here is custom business object. class Product { public int ProductID { get; set; } public string ProductName { get; set; } } class FastListDataSource : IListDataSource { private readonly System.Collections.Generic.IList < Product > _list; private readonly System.Data.IDataReader _reader; public FastListDataSource(System.Collections.Generic.IList < Product > list) { _list = list; _reader = FastMember.ObjectReader.Create(_list); } public object GetValue(string fieldName, int ordinal) { var index = fieldName.IndexOf('.'); if (index == -1) return _reader.GetValue(ordinal); var fields = fieldName.Split('.'); var target = _reader.GetValue(ordinal); for (int i = 1; i != fields.Length; i++) target = FastMember.ObjectAccessor.Create(target)[fields[i]]; return target; } public int GetOrdinal(string fieldName) { var index = fieldName.IndexOf('.'); if (index == -1) return _reader.GetOrdinal(fieldName); return _reader.GetOrdinal(fieldName.Substring(0, index)); } public System.Collections.IList List => (System.Collections.IList)_list; public System.Data.IDataReader DataReader => _reader; }
    Enumerations
     EnumerationDescription
    EnumerationProvides a set of values for use with the FieldType property of the Field class.
    Remarks
    If you want to use run-time data binding in page reports, please see Bind a Page/RDLX Report to Data.
    See Also