Exception has been thrown by the target of an invocation.


Author
Message
Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
I received the following error when navigating away from an instance of the DevEx XtraGrid (bound to a BO via a BBS):

">

I have tried updating the framework (1.6.6 released version), then I tried updating to the most recent DevEx version (8.2.4).  I have removed the grid and replaced it with another instance.  All attempts have resulted in the same behavior.

Does anyone have any idea why the XtraGrid is causing this error to popup?  Btw, I can answer 'No' and continue using the form.  I'd really like to use the XtraGrid rather than the EnhancedList (which is nice, but lacks a couple of necessary features). 

Thanks for your help!
Bill

Replies
Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
Using a DataGridView . . . success.

Using a DevEx GridControl . . . failure. 

The same error popup on window close: "Exception has been thrown by the target of an invocation. Do you want to correct the value?  Yes.  No."  If I select "Yes" the window stays open.  If I select "No" the window closes.

The version of the DevEx GridControl is 8.2.4.  I am running on the latest SF release 1.6.6.  I will try to put this into the support and forums of DevEx.  Maybe someone there can provide some further direction.

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
You can put this on the DevEx support forum, but it won't help you any.  This has nothing to do with the grid other than the fact that the field is being evaluated on a Dispose.

I know that you don't get what I am telling you, and Greg has tried to tell you the very same thing that I have been trying to tell you.

So let's start over.  You have asked for help, you created a sample that reproduced the problem.  I downloaded the sample that you gave and reproduced the problem on the version 8.1 grid.  I showed you an example of how to resolve the error by trying to make you understand that if you are going to create a custom property that relies on an underlying column pulled back from a query...that column must exist in the result set!!! 

For example, you can't create a custom property that attempts to pull from the CurrentRow if that column isn't within the CurrentDataTable.

You are welcome to post another sample if your first sample did not accurately depict your problem, which at this point it apparently did not since I corrected it and reposted it and you are still not pleased with the results.

If you do not supply "surgical precision-type" help, then you need to supply "surgical precision-type" details, otherwise we cannot help.

We have tried for a week now to help you with this problem and have gotten nowhere other than some frustrated and caustic remarks.  So let's take the emotion out of the equation and start over....by starting with a sample that accurately depicts your problem.  Past that, the bantering back and forth has not gotten anywhere and we are a week into the problem with no resolution....though I and Greg both seem to understand your problem, we cannot seem to make you understand the underlying issue.  So at this point, let's go back to the sample, create one that shows exactly what you are trying to do since you did not like my previous answer, I will correct it and repost it.

Thanks.

Bill Cunnien
Bill Cunnien
StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)StrataFrame VIP (1.2K reputation)
Group: Forum Members
Posts: 785, Visits: 3.6K
You have misinterpreted what I have been writing.  I am not at all intending to be caustic in my remarks.  There is no professionalism in that.  I am extremely grateful for every snippet of help given.  As I implement the ideas supplied here and attempt to fix my problem, I only report back to the forum what is happening.  If I do not follow a certain logic, I mention it.  Not trying to be a dork here.  Perhaps it looks that way.  Sorry.
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
No worries, we are good, I just want to help you get your problem resolved...and I am sure that you have no issue with that goal either Hehe

So that is why I was suggesting going at another sample that more accurately represents your problem so that we can hopefully get to the bottom of this.

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Bill Cunnien - 17 Years Ago
Bill Cunnien - 17 Years Ago
Bill Cunnien - 17 Years Ago
Bill Cunnien - 17 Years Ago
Bill Cunnien - 17 Years Ago
Bill Cunnien - 17 Years Ago
                 Sonds goods...:)
Trent L. Taylor - 17 Years Ago
Bill Cunnien - 17 Years Ago
                         Just to reiterate...the error does not appear with a DataGridView...
Bill Cunnien - 17 Years Ago
                         We have developers using a DevExpress grid and BBS objects every day....
Trent L. Taylor - 17 Years Ago
                             From going back and rereading your previous posts, it just sounds like...
Trent L. Taylor - 17 Years Ago
                             The details are quite simple (sample app attached). 1) Create form....
Bill Cunnien - 17 Years Ago
                                 The following data retrieval method was not updated properly before I...
Bill Cunnien - 17 Years Ago
                                     I duplicated the details I found in the designer file of a BO and this...
Bill Cunnien - 17 Years Ago
                                         Adding the following fixes the problem. [codesnippet] private...
Bill Cunnien - 17 Years Ago
                                             It worked on the test solution, but my application is not responding...
Bill Cunnien - 17 Years Ago
                                                 Here is the most recent error message for us to work with...
Bill Cunnien - 17 Years Ago
                                                     This looks like you may need to take something into account within...
Trent L. Taylor - 17 Years Ago
                                                         Yup...you are right...it is a custom property. Here is the code (the...
Bill Cunnien - 17 Years Ago
                                                             Here is another exception. This one comes about by removing the...
Bill Cunnien - 17 Years Ago
                                                                 EUREKA!! :w00t: :w00t: :w00t: Instead of evaulating the object...
Bill Cunnien - 17 Years Ago
                                                                     Stop the presses! The DevEx XtraGrid is not behaving. It still pops...
Bill Cunnien - 17 Years Ago
                                                                     Bill,

Doubt that this is it, but you probably ought to...
Greg McGuffey - 17 Years Ago
                                                                         Without you setting up a sample that reproduces the behavior it is...
Trent L. Taylor - 17 Years Ago
                                                                             I did provide a sample project that does exactly what I am...
Bill Cunnien - 17 Years Ago
                                                                                 [codesnippet] if (loValue == null || loValue == DBNull...
Bill Cunnien - 17 Years Ago
                                                                                     I ran your sample, and it did not work. Not SF, but your query would...
Trent L. Taylor - 17 Years Ago
                                                                                         Please read all of my posts...I am trying to be as thorough as I can...
Bill Cunnien - 17 Years Ago
                                                                                             Bill, as I have mentioned in previous posts as well, I cannot help you...
Trent L. Taylor - 17 Years Ago
                                                                                                 [quote]Bill, as I have mentioned in previous posts as well, I cannot...
Bill Cunnien - 17 Years Ago
                                                                                                     Bill,

I'm not sure if this will help (the last suggestion...
Greg McGuffey - 17 Years Ago
                                                                                                         Thanks, Greg. The code works in the test project using a simple...
Bill Cunnien - 17 Years Ago
                                                                                                             Using a DataGridView . . . success. Using a DevEx GridControl . . ....
Bill Cunnien - 17 Years Ago
                                                                                                                 You can put this on the DevEx support forum, but it won't help you...
Trent L. Taylor - 17 Years Ago
                                                                                                                     Youhave misinterpreted what Ihave beenwriting. I am not at all...
Bill Cunnien - 17 Years Ago
                                                                                                                         No worries, we are good, I just want to help you get your problem...
Trent L. Taylor - 17 Years Ago
                                                                                         [quote]When the Dispose fires, that strong-type field is being...
Bill Cunnien - 17 Years Ago
                                                                                             Change this . . . [codesnippet] public void FillAll() {...
Bill Cunnien - 17 Years Ago
                                                                                                 That was exactly my point, Bill!!!!! YOU MUST either pull back a...
Trent L. Taylor - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search