Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
636
Recycling the Grid
posted

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