Bound TrueDBGrid loses values depending on the RowColChange event behaviour

Posted by: oriol on 3 October 2017, 5:43 am EST

    • Post Options:
    • Link

    Posted 3 October 2017, 5:43 am EST

    Hi,

    We have been experiencing problems lately with the build 4.0.20172.217 of the TrueDBGrid.

    Note that this happens to us when we bind the grid to a DataSet (I haven’t tested it with an unbound grid).

    If we try to retrieve some values in the RowColChange event, full column values disappear.

    We noticed that it happens on 2 different case scenarios.

    Hopefully the test that I attach will be useful to reproduce the problem.

    You’ll see that there are two grids (an ‘employees’ grid and a ‘departments’ grid). If you navigate through the employees, the second grid will show each one’s departments. Also, there’s a button that clears and refills the employees grid.

    PROBLEM 1:

    • Press the “Empty the employees grid” button
    • Repress the button to fill it again
    • The employees grid loses the ‘Code’ value

    PROBLEM 2:

    • Select the second row on the departments grid (‘2’-‘Support’)
    • Select the second row on the employees grid (‘2’-‘Joe’)
    • Select the first row on the employees grid (‘1’-‘John’)
    • The departments grid loses the ‘Code’ value

    We’ll be willingly waiting for your reply, thank you very much.

  • Posted 3 October 2017, 6:01 am EST

    I’m sorry but I’m trying to upload the test sample and it won’t let me.

    It’s a 0.8 MB zip file and it says “You can’t upload files of this type.”

    Am I missing something?

  • Posted 4 October 2017, 3:12 am EST

    Hello,

    Sorry for inconvenience caused. The Zip file must have ‘.zip’ extension. Kindly try to upload the zip file with “.zip” extension.

    Thanks

  • Posted 4 October 2017, 7:39 am EST

    Attached is the sample project

    Best regards

  • Posted 5 October 2017, 2:30 am EST

    Hello,

    We could not see any attached sample project here. Could you please attach the sample again.

    Thanks,

    Mohit

  • Posted 5 October 2017, 3:36 am EST

    Attached againC1Test.zip

  • Posted 5 October 2017, 5:04 am EST

    Hello,

    For Problem1:

    Use the “C1TrueDBGrid1.Splits(0).Rows.Count” instead of “C1TrueDBGrid1.RowCount”, as “RowCount” is supposed to be used for unbound grid.

    For Problem2:

    We are analyzing the root cause which the issue. However, there is small workaround to overcome the problem.

    Set “Row” property of department grid to 0 in “RowColChange” event.

    Please refer the attached modified sample. Hope it helps.

    Thanks,

    Mohit

    C1Test_Modified.zip

  • Posted 4 December 2017, 5:45 am EST

    Hi!

    The issue has been escalated to the development team, and we will inform you once it is fixed [Tracking Id : 299040]. Meanwhile, you can find the attached sample useful as workaround.

    Regards,

    Meenakshi

    Prj_BoundGrid.zip

  • Posted 25 January 2018, 12:10 am EST

    Hello!

    The bound grid issue has been fixed in our latest hotfix, that can be downloaded from here :

    http://prerelease.componentone.com/hotfixes/dotnet/C1WinForms.4_4.0.20173.291.zip

    Best regards,

    Meenakshi

Need extra support?

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

Learn More

Forum Channels