C1FlexGrid AutoSizeFlags.IgnoreMerged doesn't ignore merge cells in AutoSizeCol

Posted by: hdle on 28 February 2020, 12:53 pm EST

    • Post Options:
    • Link

    Posted 28 February 2020, 12:53 pm EST

    Hi,

    In Flexgrid 4.0.20191.363, the AutosizeFlags.IgnoredMerged doesn’t seem to work. The grid.AutoSizeCols() method with that flag still resize the columns based on the size of the merged cells.

    _grid.AutoSizeCols(0, 0, _grid.Rows.Count - 1, _grid.Cols.Count - 1, 3, AutoSizeFlags.IgnoreMerged); yield:

    Notice columns 2-5 width is based on the top merged cell row with value of “Amount Used”

    I know this work in C1Flexgrid v2.0, but it does not seems to work in 4.0.

    Thanks,

    HL

  • Posted 2 March 2020, 12:29 am EST

    Hi HL,

    Sorry but I can not replicate the issue at my end and AutoSizeCols method is working as intended with 19V1.363 builds. Please see the attached GIF for reference.

    If you are doing something else then please let us know and provide us a stripped-down sample replicating the issue.

    Regards,

    Prabhat Sharma.

  • Posted 2 March 2020, 1:39 pm EST

    Hi Prabhat ,

    Thanks for looking into this.

    I tested my project based on the info from you CustomMerge2 example and found that it will work correctly if I set the following:

    _grid.AllowMergingFixed = AllowMergingEnum.Free;

    _grid.AllowMerging = AllowMergingEnum.FixedOnly;

    I do want merge to only occur for fixed cells but not normal cells. I though that AllowMergingFixed setting is for fixed cells while AllowMerging is for normal cells, but it looks like that is not true.

    Thanks,

    HL

  • Posted 2 March 2020, 1:40 pm EST

    Forgot to declare that my issue is fixed using:

    _grid.AllowMergingFixed = AllowMergingEnum.Free;

    _grid.AllowMerging = AllowMergingEnum.FixedOnly;

  • Posted 3 March 2020, 1:40 am EST

    Hi HL,

    It is good to hear that the issue has been fixed at your end.

    >>I do want merge to only occur for fixed cells but not normal cells. I thought that AllowMergingFixed setting is for fixed cells while AllowMerging is for normal cells, but it looks like that is not true.

    AllowMergingFixed property is to set the merging for Fixed non-scrollable cells and AllowMerging is for all the Cells. And setting just AllowMergingFixed property is working fine at our end.

    Regards,

    Prabhat Sharma.

Need extra support?

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

Learn More

Forum Channels