Creates a copy (Cloned) of the DataTable and fills it with the events from the original DataTable. It expands the recurrent event definitions into individual occurrences.
Namespace: DayPilot.Web.Ui.RecurrenceAssembly: DayPilot (in DayPilot.dll) Version: 6.8.2460.0 (6.8.2460.0)
Syntax
| C# |
|---|
public static DataTable Expand( DataTable source, string recurrenceFieldName, string startFieldName, string endFieldName, string idFieldName, string recurrenceMasterIdFieldName, DateTime rangeStart, DateTime rangeEnd ) |
| Visual Basic |
|---|
Public Shared Function Expand ( _ source As DataTable, _ recurrenceFieldName As String, _ startFieldName As String, _ endFieldName As String, _ idFieldName As String, _ recurrenceMasterIdFieldName As String, _ rangeStart As DateTime, _ rangeEnd As DateTime _ ) As DataTable |
| Visual C++ |
|---|
public: static DataTable^ Expand( DataTable^ source, String^ recurrenceFieldName, String^ startFieldName, String^ endFieldName, String^ idFieldName, String^ recurrenceMasterIdFieldName, DateTime rangeStart, DateTime rangeEnd ) |
Parameters
- source
- Type: System.Data..::..DataTable
Source DataTable
- recurrenceFieldName
- Type: System..::..String
Name of the column that holds recurrence information.
- startFieldName
- Type: System..::..String
Name of the column that holds event start.
- endFieldName
- Type: System..::..String
Name of the column that holds event end.
- idFieldName
- Type: System..::..String
Name of the column that holds event id.
- recurrenceMasterIdFieldName
- Type: System..::..String
Name of the column that will be added to the DataTable and that will store the ID of the recurrence master event.
- rangeStart
- Type: System..::..DateTime
Starting time of the expanding time frame.
- rangeEnd
- Type: System..::..DateTime
Ending time of the expanding time frame.