This is a migrated thread and some comments may be shown as answers.

Bug or Feature?

0 Answers 23 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Holger Boskugel
Top achievements
Rank 2
Holger Boskugel asked on 31 May 2012, 05:00 PM
Hello,

some minutes ago I discovered a behavior on GridView which let me struggled for some time. The background is, I fill the rows with data and set the Tag property of row to my data object. After calling GridView.Relations.AddSelfReference the type of rows changed from GridViewDataRowInfo to GridViewHierachyRowInfo. Cell data is copied, but Tag value is missed. As I saw in the Constructor of GridViewHierachyRowInfo the data cache is only copied. In my mind also the Tag data schould be copied?

My workaround is to build a separate Dictionary with the key on my data object, also used in the hierachy. So I can access the data, which should be stored in Tag property, now from Dictionary using the value of ny ID column in GridView.

Same behavior can also be discovered on Tag property of the Cells.


Regards from Leipzig

Holger

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Holger Boskugel
Top achievements
Rank 2
Share this question
or