Grid Refresh -Binding Error


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.

Ertan Deniz
Ertan Deniz
StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)
Group: Forum Members
Posts: 163, Visits: 493
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.'"

 



Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
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.

Ertan Deniz
Ertan Deniz
StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)
Group: Forum Members
Posts: 163, Visits: 493
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).

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
OK...that makes more sense.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search