Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1405
Load on Demand
posted

I have a webhierarchicaldatagrid with two child grids, the intialdatabinddepth is 0 and the child grids are expanding/loading on demand. However, I have a search functionality on my web page which searches the text in all the grids. Through a stored procedure I am getting the search results with ID's for all the grids (parent and child). If a click on any search result I want that webhierarchicaldatagrid row to be expanded with the search text to be highlighted. For parent row its working fine, but for child grid I am first finding the parent row id then binding the child grid and then expanding and highlighting that particular text. But I am getting this error: . Is there a way I can bind only the child grids I want and implement the search functionality. Please help, its very urgent.

Thanks.

 

Collection was modified; enumeration operation may not execute.

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.InvalidOperationException: Collection was modified; enumeration operation may not execute.

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:

[InvalidOperationException: Collection was modified; enumeration operation may not execute.]
System.Web.UI.ControlCollectionEnumerator.MoveNext() +8733186
Infragistics.Web.UI.GridControls.ContainerGrid.EnsureChildControls() +782
System.Web.UI.Control.PreRenderRecursiveInternal() +42
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Control.PreRenderRecursiveInternal() +175
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2496

Parents
No Data
Reply
  • 29417
    Offline posted

    Hello mmegha ,

    I'm just following up to see if you need further assistance with this issue.Please let me know if you have any questions or concerns

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    http://ko.infragistics.com/support

     

Children