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.Mvc.Recurrence
Assembly: DayPilot.Web.Mvc (in DayPilot.Web.Mvc.dll) Version: 8.0.5796.0 (8.0.5796.0)

Syntax

C#
public static DataTable Expand(
	DataTable source,
	string recurrenceFieldName,
	string startFieldName,
	string endFieldName,
	string idFieldName,
	string recurrenceMasterIdFieldName,
	DateTime rangeStart,
	DateTime rangeEnd,
	TimeSpan maxChange
)
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, _
	maxChange As TimeSpan _
) As DataTable
Visual C++
public:
static DataTable^ Expand(
	DataTable^ source, 
	String^ recurrenceFieldName, 
	String^ startFieldName, 
	String^ endFieldName, 
	String^ idFieldName, 
	String^ recurrenceMasterIdFieldName, 
	DateTime rangeStart, 
	DateTime rangeEnd, 
	TimeSpan maxChange
)

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.
maxChange
Type: System..::..TimeSpan
Maximum start date change of an exception from the rule. Event that is moved back for more than "maxChange" using an exception might not be visible.

Return Value

See Also