C1Gridview error

Posted by: tonyalyn on 10 September 2017, 11:30 am EST

  • Posted 10 September 2017, 11:30 am EST

    I have a c1gridview that uses grouping. If any group is collapsed and a control within another group is selected, the following error occurs when the page is submitted. Please help?


    Unable to cast object of type 'System.String' to type 'System.Collections.ArrayList'.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

    Exception Details: System.InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Collections.ArrayList'.

    Source Error:





    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.




    Stack Trace:






    [InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Collections.ArrayList'.]
    C1.Web.UI.Controls.C1GridView.C1BaseFieldCollection.(Object state) +51
    C1.Web.UI.Controls.C1GridView.C1GridView.(Object state) +2685
    C1.Web.UI.Controls.C1GridView.C1GridView.(Object sender, EventArgs e) +227
    System.EventHandler.Invoke(Object sender, EventArgs e) +0
    System.Web.UI.Page.OnInitComplete(EventArgs e) +8698006
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +467





  • Replied 10 September 2017, 11:30 am EST

    Hi,
     
    could you please let me know the version of the
    C1GridView control which you use and provide a small sample illustrating the
    issue? I need this because I can't reproduce the propblem on my side by your
    description.
     
    Regards,
    Sergey.
    style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    wrote: href="news:229326@10.0.1.98">news:229326@10.0.1.98...

    I have a c1gridview that uses grouping. If any group is collapsed and a
    control within another group is selected, the following error occurs when
    the page is submitted. Please help?


    Unable to cast object of type 'System.String' to type
    'System.Collections.ArrayList'.

    Description:
    An unhandled exception occurred during the execution of the current web
    request. Please review the stack trace for more information about the error
    and where it originated in the code.

    Exception Details:
    System.InvalidCastException: Unable to cast object of type 'System.String'
    to type 'System.Collections.ArrayList'.

    Source Error:





    An unhandled exception was generated during the execution of
    the current web request. Information regarding the origin and location
    of the exception can be identified using the exception stack trace
    below.
    Stack Trace:





    [InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Collections.ArrayList'.]
    C1.Web.UI.Controls.C1GridView.C1BaseFieldCollection.(Object state) +51
    C1.Web.UI.Controls.C1GridView.C1GridView.(Object state) +2685
    C1.Web.UI.Controls.C1GridView.C1GridView.(Object sender, EventArgs e) +227
    System.EventHandler.Invoke(Object sender, EventArgs e) +0
    System.Web.UI.Page.OnInitComplete(EventArgs e) +8698006
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +467





    href="http://helpcentral.componentone.com/forums/p/82366/229326.aspx#229326">http://helpcentral.componentone.com/forums/p/82366/229326.aspx#229326

  • Replied 10 September 2017, 11:30 am EST

    Hi Sergei,


    I am using 3.5.20092.132. Where can I send code to? I will gladly send you the whole site if it helps!

  • Replied 10 September 2017, 11:30 am EST

    > I am using 3.5.20092.132.


    Did you try a newer version?


    > Where can I send code to?


    Email it to sergeys@componentone.com.


    > I will gladly send
    you the whole site if it helps!


    Please do not send the whole project. Prepare a small working sample (the smaller -- the better) that isolates and illustrates the problem.

Need extra support?

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

Learn More

Forum Channels