I see attributes HeaderStyle-xxxxx and ItemStyle-xxxxx in the grid column tag and I see a nested elements <HeaderStyle /> (in which I can also specify the column width) and <ItemStyle />.
I used the column attribute mechanism to set width and wrap; later I find that the attribute specific width has been supplemented by <HeaderStyle Width="..." /> nested elements; I see the same for ItemStyle-Wrap="false" generating nested <ItemStyle Wrap="False" />.
When I change value in the column tag attribute and the nested tag is present, it's setting takes precedence.
So, a few questions:
- What is generating the nested tags?
- Is one or the other markup mechanism preferred? (Given the very long list of column attributes, I can see for readability the nested tags might be preferable. However, when both exist, it's too easy to edit the attribute value in the column tag instead of the nested header or item style element which has final determination of the setting.
- If using the column tag attributes method is equivalent, is there a way to disable the self-generation of the nested tags? (Or for auto-removing the redundant attribute from the column element tag.)
Thanks,
Rick Palazola
The Jackson Laboratory