Binding Infragistics UltraWebGrid with CSLADataSource

Binding Infragistics UltraWebGrid with CSLADataSource

Old forum URL: forums.lhotka.net/forums/t/7222.aspx


JoeW posted on Thursday, July 02, 2009

I'm trying to get the UltraWebGrid (ver 9.1) to work with CSLA ver 3.6.2, but can't seem to get it to insert/update/delete without causing an error.  I can successfully fill the grid.  The standard GridView works correctly
 
I have set the following properties on the UltraWebGrid:
 
DataKeyField : Object primary key
DataMember: Full Class Name
DataSourceID: CSLADataSource
 
When I try to do anything other than select, I get the following error in the CslaDataSource.cs class in the GetType method:
 
"Could not load file or assembly 'DealTrack.BO' or one of its dependencies. The system cannot find the file specified."
 
This error seems to occur prior to any of the CSLADataSource events kicking off.
 
Anyone else run into this?  Any help would be appreciated.
 
Thanks,
Joe

rfcdejong replied on Thursday, July 09, 2009

Joe, did u fix it by now?

It sounds like something simple as setting a reference in the correct project. However it's strange that the standard GridView works and the UltraWebGrid doesn't.

Try adding a reference to DealTrack.BO in your startup project, mostly that does the trick.

JoeW replied on Friday, July 10, 2009

Unfortunately, no. I doubled checked all of my references and the startup project does have a reference.

Everything in the grid works as you would expect until a postback occurs. That's when I get the error.

I'm sure it's something simple, but I haven't figured it out yet. I assume it should be working?

Copyright (c) Marimer LLC