Hello,
I'm getting some errors in what I would figure may be a somewhat common use case under the preview release and I hope I can get some help.
My use case, I've got a XamGrid that's bound to a VirtualCollection over a type that's effectively a property bag. I examine the object that created the property bags to determine what the columns are and generate those columns.
When the backing search changes, the virtual collection is replaced by a new collection and the system attempts to confirm that it's structure is correct. If the stucture has changed, it clears the column set THEN attempts to readd all the columns that should be displayed.
When I go to add the first column, it also happened to have been displayed in the initial data set and I get a duplicate key error. I cleared the columns, what do I have to do to clear the grid's knowledge of their keys?
Mike
Dimi,
Sorry for the delay in responding, yes, that solution works JUST fine ... looks a little odd in code, but I've got a lovely little comment and a reminder to replace it with the proper call when 10.3 goes live.
Thanks so much for your assistance,
Hello Mike,
I am just checking if you got the workaround working for you or you still require any assistance or clarification on the matter. Just let us know.
Thank you.
Sincerely,DimiDeveloper Support EngineerInfragistics, Inc.
Hi Mike,
Yea this is an issue that we already fixed and will be in the 10.3 Release.
However, you should be able to work around this by manually removing the columns instead of calling clear.
Thanks for letting us know!
-SteveZ