C1FlexGrid AutoSizeRows Issue

Posted by: james on 7 August 2022, 7:17 pm EST

    • Post Options:
    • Link

    Posted 7 August 2022, 7:17 pm EST

    I’ve noticed an issue with the AutoSizeRows method of the C1FlexGrid. In 99% of cases it works, but if certain text is in the row, then that particular row does not resize correctly.

    We use the grid extensively for our notes database, and in that particular case, it matters if you have a trailing space or not.

    In the sample I’ve uploaded that’s not the case, but if you press the “Add Text” button, and then the “Resize Rows” button you will notice that row 2 has not resized correctly.

    You will also notice that if you flip row 1 with row 2, then those particular rows are okay… but Row 4 still has an issue.

    Let me know if you need any more info.


  • Posted 7 August 2022, 7:17 pm EST

    Apologies, the Zip didn’t attach to my first message.


  • Posted 7 August 2022, 8:08 pm EST

    Hi James,

    good news - this was fixed in .557 and also in the newest 2022v2 release. Attached is a reworked sample, using the Nuget packages of .557.


    See also https://www.grapecity.com/forums/winforms-edition/c1flexgrid-regression-in-5

    Best regards


  • Posted 8 August 2022, 12:51 pm EST

    Hi Wolfgang…

    thanks, i’ll give it a go.

  • Posted 8 August 2022, 2:41 pm EST

    Hi James,

    As @Wolfgang shared, this issue was fixed in the 2022v1 hotfix release (.557 build). We suggest that you at least update to this version in your application and see if you still face any issues.

    If the issue persists, please update the sample you attached earlier with the specific text/row showing the behavior, so we can investigate further and assist you in the best way possible.

    PS: Thanks a lot for the assistance, Wolfgang! :slight_smile:

    Kind Regards,


  • Posted 12 October 2022, 4:19 pm EST

    Apologies for the delayed response…

    The update only fixed the sample, but in our application the bug still persists.

    I have updated the sample so that you can see when the bug happens.

    The bug happens when a DataTable and a BindingSource is used.

    Please have a look at my updated attached sample.

    To see the bug, Click “Add Text”, then click “Resize Rows”.

    You will see that the first row does not resize properly.

    This is because there is a space after the last word in the note.

    You can see the difference between the notes in the code.

    As mentioned, this only happens if you use a DataTable, that has a BindingSource bound to it, and then the flexgrid datasource is set as the binding source.


  • Posted 13 October 2022, 5:54 pm EST

    Hi James,

    Thank you for providing the sample. We could see the behavior you mentioned on our end and it seems like a bug. We have reported the issue to the development team and will let you know as soon as we have an update.

    [Internal Tracking ID: C1WIN-28393]

    Thanks, and Best Regards,


  • Posted 24 November 2022, 11:41 am EST

    Hi Kartik

    Thank you for this. Do you know how long roughly before a fix will be available?


    Kind Regards


  • Posted 24 November 2022, 2:53 pm EST

    Hello James,

    The issue has been fixed internally and will be available in the next public release 2022v3 which is supposed to be released in mid of Dec 2022.


    Prabhat Sharma.

  • Posted 24 November 2022, 3:41 pm EST

    Hi Prabhat

    Thanks for the info.

    Kind Regards


  • Posted 21 December 2022, 4:21 pm EST

    Hi James,

    We are glad to let you know that this issue has been fixed in the latest 2022v3 (584) release. You can either update to the latest version using the ComponentOne Control Panel OR directly install the latest C1 packages through NuGet. Links for both are given below.



    Kind Regards,


  • Posted 9 January 2023, 1:54 pm EST

    Hi Kartik

    Thanks for the update. I’ll get it installed, and I’ll let you know if there are any further issues.


Need extra support?

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

Learn More

Forum Channels