Posted 21 January 2020, 9:30 pm EST
And then I tested the “C1SchedulerExtended” dll ;-).
-
I did not find a website which explains the purpose of C1TableView and C1AgendaView.
-
when assigning our existing C1Scheduler to a C1TableView, this exception occured:
System.ArgumentException
HResult=0x80070057
Message=Der Typ des Werts stimmt nicht mit dem Spaltentyp überein<156957777> konnte nicht in der Id-Spalte gespeichert werden. Erwarteter Typ: Guid.
Source=System.Data
StackTrace:
at System.Data.DataColumn.set_Item(Int32 record, Object value)
at System.Data.DataRow.set_Item(DataColumn column, Object value)
at C1.Win.C1Schedule.C1TableView.SetRow(Appointment app, DataRow row)
at C1.Win.C1Schedule.C1TableView.AddDataRow(Appointment app)
at C1.Win.C1Schedule.C1TableView.OnAppointmentsLoaded()
at C1.Win.C1Schedule.BaseTableView.set_Schedule(C1Schedule value)
at ... this is our code...
This exception was originally thrown at this call stack:
System.Data.Common.ObjectStorage.Set(int, object)
System.Data.DataColumn.this[int].set(int, object)
Inner Exception 1:
ArgumentException: Der Typ des Werts stimmt nicht mit dem Spaltentyp überein
We use an int ID, and it seems C1TableView works only with Guids.
For C1AgendaView it worked, but the control was empty…
- the sample “TableViews” does not seem to update the C1TableView and C1AgendView controls when a new appointment is added to the C1Schedule. Thus I cannot test how non-recurring appointmets look like.
Best regards
Wolfgang