If I use directly the control Telerik GridViewDataColumn, define the column grid like a Date (DataType="{x:Type sys:DateTime}"), when I click on the filed visualize correctly the Calendar.
But if I use the custom control from GridViewDataColumn when I do click appare this error:
System.InvalidCastException: Impossibile eseguire il cast di oggetti di tipo 'Telerik.Windows.Controls.RadDatePicker' sul tipo 'System.Windows.Controls.TextBox'.
Can you help me to resolve the problem?
Thank You.
But if I use the custom control from GridViewDataColumn when I do click appare this error:
System.InvalidCastException: Impossibile eseguire il cast di oggetti di tipo 'Telerik.Windows.Controls.RadDatePicker' sul tipo 'System.Windows.Controls.TextBox'.
Can you help me to resolve the problem?
Thank You.
Hello Debora,
This does give me a general idea of what the scenario is on your end, however, with the currently shared information I cannot correctly pinpoint the cause of this exception.
With this being said, would it be possible to share the implementation of the custom GridViewDataColumn, or if this is not possible, just an extracted code from it that will still cause this exception? This will allow me to prepare a sample project, test this behavior, and get back to you with more information on why this is caused.