EntityCollection and Infragistics WebHierarchicalDataGrid

Posts   
 
    
usschad
User
Posts: 77
Joined: 11-Sep-2008
# Posted on: 01-May-2011 00:28:59   

I have searched the forum, infragistics site, and google and found no examples on how to bind an entity collection to the WebHierarchicalDataGrid. Is this even possible? I have had troubles with their older grids in the past (UltraWebGrid) and completely gave up after reading on here that infragistics was missing something that prevented proper binding to the EntityCollection. I was hoping that their newest version has learned to play nicely as it seems this problem comes up often.

I've tried to bind this a few different ways and I just end up with a series of meaningless exceptions such as:

[InvalidOperationException] Infragistics.Web.UI.GridControls.WebHierarchicalDataGrid.DataBind() +749 Infragistics.Web.UI.GridControls.WebHierarchicalDataGrid.EnsureDataBound() +35 Infragistics.Web.UI.Framework.Data.HierarchicalDataBoundControlMain.OnPreRender(EventArgs e) +89 Infragistics.Web.UI.GridControls.WebHierarchicalDataGrid.OnPreRender(EventArgs e) +13 System.Web.UI.Control.PreRenderRecursiveInternal() +103 System.Web.UI.Control.PreRenderRecursiveInternal() +175 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

I've posted for help on the infragistics forum as well, but I know you guys are much more on top of your game. If you happen to have a resource that can help me, I would appreciate it.

Chad

usschad
User
Posts: 77
Joined: 11-Sep-2008
# Posted on: 01-May-2011 00:30:54   

Sorry, I was in a rush. I forgot to post the details:

.NET 4 LLBLGen 3.0 (jan 21 2011) Infragistics 2010 Volume 3

I have an entity collection that goes 3 deep and just want to bind this to the grid.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39908
Joined: 17-Aug-2003
# Posted on: 01-May-2011 11:43:07   

Stacktrace is either incomplete (the 'inner exception part is missing) or if not, it's an infragistics problem (the exception is thrown inside the infragistics method, so IMHO there's little we can do without more info). Have you contacted Infragistics about this? Their code throws the exception, so IMHO that's the first thing to look at.

They implemented ITypedList a couple of years ago. Hierarchical grids can be a problem though, as they might only work with datasets, but as we are not familiar with infragistics' work, you have to ask them if it works. Our code implements the .NET interfaces to be bindable to .net controls, so there's little we can do at this point.

If infragistics wants more information from us, please post in this thread.

Frans Bouma | Lead developer LLBLGen Pro