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
430
Personalize Bands
posted

Hi,

I'm tryin to use DataSet to retrieve data from XML file and display it into WHDG. It work Corretcly.

But when i ty to personlize Bands, for example display some elements and hidden the others, the WHDG display all (data in the Dataset + data personalized)

Attached the code, and this is my XML File

 

<?xml version="1.0" encoding="utf-8"?>
<ItemList>
<Item><Category>1- category 1</Category><Title>title 11</Title><Key>A1</Key></Item>
<Item><Category>1- category 1</Category><Title>title 12</Title><Key>A2</Key></Item>

<Item><Category>2- category 2</Category><Title>title 21</Title><Key>A5</Key></Item>

<Item><Category>2- category 2</Category><Title>title 22</Title><Key>A6</Key></Item>
<Item><Category>2- category 2</Category><Title>title 23</Title><Key>A7</Key></Item>
<Item><Category>2- category 2</Category><Title>title 24</Title><Key>A8</Key></Item>
<Item><Category>3- category 3</Category><Title>title 31</Title><Key>A9</Key></Item>

<Item><Category>4- category 4</Category><Title>title 41</Title><Key>A12</Key></Item>

<Item><Category>4- category 4</Category><Title>title 42</Title><Key>A13</Key></Item>
</ItemList>

 

 

I would lik only to display in Bands (Title 11 and Key 11)

 

Thank you,

WebSite3.rar
Parents
No Data
Reply
  • 33839
    posted

    Hi, 

    It sounds like you are adding columns to your bands, but are not setting AutoGenerateColumns="false" on the band.  If that is true, we make columns for all the data, plus whatever is explicitly in the columns collection.

    regards,
    David Young 

Children