Class GanttDataSource
Represents the data source for the Gantt chart.
Inheritance
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
GanttDataSource
Namespace: FastReport.BG.Gantt
Assembly: FastReport.BG.dll
Syntax
[ComplexBindingProperties("DataSource", "DataMember")]
public class GanttDataSource : Component, IComponent, IDisposable
Constructors
GanttDataSource()
Gantt Data Source.
Declaration
public GanttDataSource()
Fields
ResourceIndexes
A set of key-value pairs, the key of which is the name of the resource, and the value is the index from the palette.
Declaration
public Dictionary<string, int> ResourceIndexes
Field Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, System.Int32> |
Properties
DataSource
Gets or sets a DataSource.
Declaration
public object DataSource { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
DateTimeFormat
Gets a DateTimeStyles for dataset.
Declaration
public DateTimeFormatInfo DateTimeFormat { get; }
Property Value
Type | Description |
---|---|
System.Globalization.DateTimeFormatInfo |
EndDateMember
Field that will be specified to determine the value of the record end date.
Declaration
[Browsable(true)]
public string EndDateMember { get; set; }
Property Value
Type | Description |
---|---|
System.String |
NameMember
Field that will be specified to determine the value of the record name.
Declaration
[Browsable(true)]
public string NameMember { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Records
Returns a list of records from a data source.
Declaration
public GanttRecord[] Records { get; }
Property Value
Type | Description |
---|---|
GanttRecord[] |
ResourceMember
Field that will be specified to determine the value of the record resource.
Declaration
[Browsable(true)]
public string ResourceMember { get; set; }
Property Value
Type | Description |
---|---|
System.String |
StartDateMember
Field that will be specified to determine the value of the record start date.
Declaration
[Browsable(true)]
public string StartDateMember { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
ReadCsvData(String)
Loads data from csv file
Declaration
public void ReadCsvData(string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | Path to file |
ReadXmlData(String)
Loads data from xml file
Declaration
public void ReadXmlData(string fileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | Path to file |
Events
DataSourceChanged
Triggers when DataSource parametres changed.
Declaration
public event EventHandler DataSourceChanged
Event Type
Type | Description |
---|---|
System.EventHandler |