Setting data in C1FlexGrid with and without C1FlexGridGroupPanel

Posted by: bhartmann on 5 June 2019, 3:48 am EST

  • Posted 5 June 2019, 3:48 am EST

    Hello,

    I’m running into an issue with setting a lot of data in a grouped grid with rows >10000.

    Attached is a demo project. There is a C1FlexGrid, C1GroupPanel, and some buttons that change the data rows. The grid is loaded with 1000 rows of random data. The button changes the state of a cell in every row. When this button is pushed without any grouping, the changes are instantaneous. Furthermore, there are no cell changed events firing in this situation. After grouping on category, pressing the button takes a second and there are 2000 cell changed events fired.

    This slow down isn’t terrible until there’s 10000+ rows. After that, it locks up for quite a while. I think there are other events fired beyond cell changed, but I believe those change events are what’s slowing it down.

    There is a workaround. If I take the grouping off the grid, change all the rows, then reapply the grouping, it works instantly. I think I can live with this work around, but it seems like a bug in the grid to me. Maybe I’m missing something simple and there’s a way to do it without removing the GroupDescription every time.

    -Ben

  • Posted 5 June 2019, 11:03 pm EST

    Hi Ben,

    We’re discussing your issue with the developers [Internal Tacking ID: 383634]. We’ll let you know as soon as we have more information.

    Thanks,

    Jitender

  • Posted 10 September 2019, 4:36 pm EST

    Hi Ben,

    In the latest hotfix build (4.*.20192.382), FlexGrid has been optimized to avoid firing CellChanged event when it’s not necessary.

    You can get the latest build from these links:

    http://prerelease.componentone.com/hotfixes/dotnet/C1WinForms-452_4.5.20192.382.zip

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

    Regards,

    Jitender

Need extra support?

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

Learn More

Forum Channels