C1TrueDBGrid/C1DateEdit crash with nullable DateTime values

Posted by: marc.brown on 2 August 2019, 3:52 pm EST

    • Post Options:
    • Link

    Posted 2 August 2019, 3:52 pm EST

    I have an object collection that I display in a C1TrueDBGrid. This object contains some DateTime? properties. I’m attempting to use a C1DateEdit control as the custom editor for those properties. If I use the dropdown date picker, all is well – it behaves as expected. However, if I attempt to enter dates via the keyboard, things go south.

    Clicking on the first field, then entering a date, then pressing RETURN (or ENTER) ends with the expected result (the date I entered is shown in the cell.

    Navigating to the next DateTime? cell, whether in the same row or another row (I’m using the arrow keys to navigate at this point) and beginning to enter a date results in the following exception as soon as I press the first key:

    System.Exception: Cannot assign text to readonly, disabled or hidden C1Input

    control when its Text property is not detached.

    at C1.Win.C1Input.C1TextBox.set_Text(String value)

    at C1.Win.C1TrueDBGrid.C1EmbeddedEditor.C1EditorInitialize(Object value, IDictionary attributes)

    at C1.Win.C1TrueDBGrid.BaseGrid.View.InitEditorSession(Style style, Rectangle r, Object data, Char key, Boolean isMouse, String mask, C1DisplayColumn dc, Boolean readOnly)

    at C1.Win.C1TrueDBGrid.BaseGrid.View.BeginEdit(Char key, Boolean isMouse, Boolean fire)

    at C1.Win.C1TrueDBGrid.Split.BeginEdit(Char key, Boolean isMouse, Boolean fire)

    at C1.Win.C1TrueDBGrid.BaseGrid.Frame.OnKeyPress(KeyPressEventArgs e)

    at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)

    at System.Windows.Forms.Control.WmKeyChar(Message& m)

    at System.Windows.Forms.Control.WndProc(Message& m)

    at C1.Win.C1TrueDBGrid.BaseGrid.Frame.WndProc(Message& m)

    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    The version of the C1 controls is 4.0.20183.343. I’m attaching a small sample project that demonstrates the problem.

    C1TrueDBGrid and C1DateEdit sample.zip

  • Posted 5 August 2019, 8:49 am EST

    Hello,

    We are able to replicate the issue and we are investigating on it.

    We will let you know once it is done.

    Thanks and Regards,

    Prabhat Sharma.

  • Posted 6 August 2019, 6:50 am EST

    Hello,

    We are discussing it with developers.[Internal Tracking ID : 393375]

    We will let you know once there is any update regarding this from the devs.

    Thanks and Regards,

    Prabhat Sharma.

  • Posted 15 August 2019, 2:59 pm EST

    Good afternoon! Anything to report on this issue?

    –mab

  • Posted 16 August 2019, 12:22 am EST

    Hi,

    The developers have identified this as a bug. The fix for this will be available in the 2019 v3 release.

    Regards,

    Jitender

  • Posted 16 August 2019, 8:12 am EST

    Thanks for the info. Can you give me an idea of when that release might be available so that my team can make plans to deal with the issue?

    –mab

  • Posted 16 August 2019, 12:02 pm EST

    Hey, I just discovered a second issue with this combination of controls. If you pick a date for one cell using the dropdown date picker, attempting to pick a date for a second cell using the same method doesn’t result in a date being put into the second cell.

    The sample application I provided for the original issue demonstrates this issue. Run it, open the dropdown for the first row’s date field, then pick a date (say, August 1, 2019). When you click on the date, the dropdown closes and the date you picked shows up in the cell. Click into the second row’s date field, then pick a date (say, August 15, 2019). When you click on the date, the dropdown closes but the cell remains empty.

    –mab

  • Posted 19 August 2019, 7:52 am EST

    Hello,

    I too can replicate the issue at my end so forwarded it to the developers.[Internal tracking ID : 394543].

    We will let you know once we get any updates regarding this from the devs.

    Thanks and Regards,

    Prabhat Sharma.

  • Posted 9 December 2019, 3:06 am EST

    Hello,

    We are happy to inform you that both of your issues have been fixed in 20193.393 builds.

    You can download the latest builds from the given link :

    https://www.grapecity.com/download/componentone-studio

    Regards,

    Prabhat Sharma.

  • Posted 25 December 2019, 5:17 pm EST

    How can I get an update of this bug fix if my license has expired? I am having this same problem and think my original license should cover any bug fixes.

  • Posted 26 December 2019, 2:42 am EST

    Hello,

    List of all the fixes and improvements that have been made in the release is listed on the link given below :

    https://www.grapecity.com/componentone/docs/win/online-releasehistory/studioforwinformsreleasehistory.html

    Sorry but all the fixes are available in the latest builds only and to use that feature I would suggest you to upgrade to the latest builds. You can download it from the given link :

    https://www.grapecity.com/download/componentone-studio

    Regards,

    Prabhat Sharma.

  • Posted 26 December 2019, 2:42 pm EST

    So I have to pay $1000 for your mistake? I don’t need an upgrade, I just need my product to work. This is causing problems in multiple spots of my program and you need to fix this. I paid a lot of money for your product and I would expect it to work and if it doesn’t, I want you to fix it or give me a refund.

  • Posted 27 December 2019, 2:38 am EST

    Hello,

    We understand your concern.

    As I said that fixes are made in the future build only and as per our information your license is valid through 2019V2 builds only so we are asking the concerned team what we can do best for you in this scenario. We will let you know soon.

    Regards,

    Prabhat Sharma.

  • Posted 30 December 2019, 3:27 am EST

    Hello,

    I have created a case in our portal SupportOne and have responded you over there. Therefore, you are requested to kindly refer the following URL: https://supportone.componentone.com/home/casedetail/414981

    Best wishes,

    Ruchir

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels