I tried to open a new appointment based on a single "cell" click with context menu but the suggested Date (day) is the first day of week interval, not the day I selected. If I select a larger period of time (multiple cells) then the suggested date is correct. How can I solve this problem, to read the correct date (day) from selection?
Attachments contains an example from samples that come with components.
Thanks
Attachment:
err_ccf1ba0a.zip
Later edit: I found a solution but not very elegant one
Dim ColumnIndex As Integer = sc1.GetScheduleHost().CurrentCell.ColIndex
Dim dataStart As String = sc1.GetScheduleHost().Model(0, ColumnIndex).CellValue
The problem is dataStart As String (or Object in original version) because return any format but Date format. I used string manipulation to create date from string but I am worried if this solution will work in different conditions/environments. If you have a better approach please let me know.
Thanks