System.ArgumentOutOfRangeException on Refresh() FlexGrid (8.0.20251.721)

Posted by: santer.p75 on 3 November 2025, 2:44 pm EST

  • Posted 3 November 2025, 2:44 pm EST

    in the grdFlexGrid.RowColChange event i call grdFlexGrid.Refresh()

    I got this error

    System.ArgumentOutOfRangeException: “Index was out of range. Must be non-negative and less than the size of the collection. (Parameter ‘index’)”

    But only sometimes…

    I switched to the .Net 8 from Frameworke 4.8

    The same code in 4.8 Works fine…

  • Posted 4 November 2025, 7:57 am EST

    Hi,

    Unfortunately, we could not reproduce the issue you mentioned. We tested calling the Refresh method within the RowColChange event of the C1FlexGrid and did not observe any exceptions. Please refer to the attached sample project for reference.

    With the limited information currently available, it is difficult for us to determine the root cause of the issue. We also haven’t received any recent reports of similar behavior in the latest version. Therefore, we request you to share a small sample project, or update the attached one, to reproduce the issue you are facing, so we can investigate further and assist you more effectively.

    Additionally, if the issue occurs only after following specific steps or happens inconsistently, please share a short video demonstrating the behavior. This will help us identify any patterns and understand the scenario better.

    Furthermore, it would be helpful if you could share the complete StackTrace of the issue rather than just the exception type. This will allow us to analyze the call sequence and potentially reproduce the problem by backtracking through the method stack.

    Attachment: FlexGridErrorOnRefresh.zip

    Best Regards,

    Kartik

Need extra support?

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

Learn More

Forum Channels