StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      


««12

Grid Refresh -Binding ErrorExpand / Collapse
Author
Message
Posted 07/06/2008 5:32:58 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 7:08:30 PM
Posts: 4,811, Visits: 4,781
I have not had a change to look at this in depth.  I tried to re-produce the problem quickly, but had no issues.  Since I am going to have to take your code and try and reconstruct your issue, I have not had a chance to do this.  If you want to supply the sample, it may go faster.  But as of yet, I have not been able to reproduce nor have I spent an extended amount of time trying to reproduce since I couldn't reproduce it quickly.

So at present, this is on a list to look at, and it is something that we will try to look at prior to the final 1.6.6 build.  If you want to provide a sample showing the error versus just showing a code snippet, it will definitely speed up the process.

Post #17647
Posted 07/08/2008 1:03:59 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 7:01:16 AM
Posts: 154, Visits: 470
I think there is conflict or complication. What do you say the conflict with the message and code ?

The line from my code shows that unitset_id gets value.

((Services)component).unitset_id = (Nullable<System.Int32>Value; (Error : Specified Cast is not valid.)

But message says  control gets value ;

"An error occurred while refreshing the data from field 'Services.unitset_id' to property 'SelectedValue' on control 'editUnitSet.'"

 


Post #17696
Posted 07/08/2008 9:43:26 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 7:08:30 PM
Posts: 4,811, Visits: 4,781
Ertan,

I don't see anything past an invalid cast exception.  Why can't you just return an alternate value on Null so that a valid value is returned to the grid?  I do not believe this to be a BBS or BO "bug" or "issue" but rather how it is designed.  If the control to which you are binding doesn't support a null value being returned, then you would want to ensure that it can be cast by supplying a valid value.  Just from looking at your code snippet and stack trace, this is what I would recommend.

Post #17705
Posted 07/09/2008 3:39:17 AM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 2 days ago @ 7:01:16 AM
Posts: 154, Visits: 470
I've developed a test a project. And seen that no problem at that case.

Original point in my project also have been tested and also no problem.

The problem may be related development environment (DLL versions etc).

Post #17727
Posted 07/09/2008 7:59:59 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 7:08:30 PM
Posts: 4,811, Visits: 4,781
OK...that makes more sense.
Post #17730
« Prev Topic | Next Topic »

««12

Reading This TopicExpand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 4:00am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.062. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.