Issue where C1FlexGrid.AutoSizeRows() based on invisible column

Posted by: freedom93123 on 23 November 2021, 12:09 am EST

    • Post Options:
    • Link

    Posted 23 November 2021, 12:09 am EST

    Hi,

    I found that C1FlexGrid.AutoSizeRows() is working inconsistently in version 4.0.20181.296 and 4.5.20211.502.

    In version 4.0.20181.296, AutoSizeRows() function will not autosize the row height based on invisible column which is the expected behavior.

    However in version 4.5.20211.502, AutoSizeRows() function will autosize the row height based on invisible column.

    Kindly refer the attachments.C1FlexGrid.AutoSizeRows Issue.zip

  • Posted 23 November 2021, 5:48 am EST

    Hi,

    I tested the behavior on both the builds and I am unable to replicate the issue on my end. In both the builds, the grid doesn’t resize the row height if the column with the wrapped text is invisible.

    Kindly refer to the attached sample demonstrating the same.

    Please feel free to modify the sample if you are doing something different, to replicate the issue.

    Regards,

    Prabhat Sharma.

    RowAutoSizeDemo (1).zip

  • Posted 29 November 2021, 11:05 pm EST

    Hi,

    I’m still investigate and trying to replicate the issue. I’ll come back to you afterwards.

    Thanks!

    Regards,

    Yap

  • Posted 30 November 2021, 4:38 am EST

    Hi,

    I manage to recreate the issue by using overridable method - Public Overridable Sub AutoSizeRows(topRow As Integer, leftCol As Integer, bottomRow As Integer, rightCol As Integer, extraSpace As Integer, flags As AutoSizeFlags).

    Please find the sample in the attachment.

  • Posted 1 December 2021, 12:06 am EST - Updated 3 October 2022, 10:52 pm EST

    Hi,

    We do not see any sample attached with your last response.

    We tried to replicate the issue using the overload method as well but we did not face the issue. Kindly refer to the attached sample and gif showing the behavior at our end i.e. the AutoSizeRows resizes according to the visible columns of the row. If you are doing something different, please modify the sample or reattach your own sample, so we can assist you further.

    Regards

    Avnish

    AutoSizeRowsDemo_V4.5.20211.502.zip

  • Posted 2 December 2021, 10:36 pm EST

    Hi,

    I managed to find the root cause where our program is using AutoSizeRow() with AutoSizeFlags.None option.

    But I’m not sure why the our program using older version 4.0.20181.296 will not have this issue and I could not recreate this in your demo using 4.0.20181.296.

    I managed to resolve this issue by using AutoSizeFlags.IgnoreHidden.

    Anyway, great thanks for your effort in this!

  • Posted 3 December 2021, 12:41 am EST

    Hi,

    Good to hear that you were able to resolve the issue.

    If you have any other issues, just let us know.

    Regards

    Avnish

Need extra support?

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

Learn More

Forum Channels