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.
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.
[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
mmegha,
can you tell me how? As I am also facing the same issue
Hi,
Thanks for the follow up, but that problem has been resolved now.
Megha
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
Thank you for posting in our forum.
Could you provide some further information on the Infragistics version your using and also its release version ?
Also in the RowIslandsPopulating are you making any changes to the new ContainerGrid that has been added?
It would be very helpful if you could provide a reference free sample or a code snippet of the relevant code ( the RowIslandsPopulating event and where you highlight the text).
I’m looking forward to your reply.