.NewRow() Error - An Item with the same key has already been added.


Author
Message
jsantos
jsantos
StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)StrataFrame Novice (78 reputation)
Group: StrataFrame Users
Posts: 26, Visits: 87
Hello,

I am having an issue when calling .NewRow I get an error in the CreateShareAndAddBusinessObject function in BusinessBindingSource.vb (see attached image)

Before calling the .NewRow in our code the CurrentRowIndex = -1 which I expect as the BO should be empty. Then as soon as I call .NewRow I get an exception. When the error is thrown index = 0 when it should be 1 according to loReturn where it looks like there is already one record and then the error makes sense.

Any ideas?

http://forum.strataframe.net/Uploads/Images/c855b057-bc96-4ba1-a242-0e50.png
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
jsantos - 9 Years Ago
Edhy Rijo - 9 Years Ago
jsantos - 9 Years Ago
Edhy Rijo - 9 Years Ago
jsantos - 9 Years Ago
StrataFrame Team - 9 Years Ago
StrataFrame Team - 9 Years Ago
jsantos - 9 Years Ago
jsantos - 9 Years Ago
StrataFrame Team - 9 Years Ago
jsantos - 9 Years Ago
StrataFrame Team - 9 Years Ago
Edhy Rijo - 9 Years Ago
                     Yep, Edhy, the WPF ICollectionView and...
StrataFrame Team - 9 Years Ago
                         Yes, Ben you are right. I remember long time ago when I was starting...
Edhy Rijo - 9 Years Ago
jsantos - 9 Years Ago
jsantos - 9 Years Ago
StrataFrame Team - 9 Years Ago
jsantos - 9 Years Ago
jsantos - 9 Years Ago
StrataFrame Team - 9 Years Ago
Edhy Rijo - 9 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search