Datagrid with XML input

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi
I had a XML data file which bind onto a datagrid.
inside my XML i had a attribute named color and have value "green",
"black"...etc.

are there any way to define row color using this attribute?

Thanks a lot.
Windy
 
Windy,

Normally a dataset has no attributes however only elements.

Therefore can you explain a little bit more what the XML file looks like?

Cor
 
hi Cor,

the xml should have the format similar as the one listed below.
<xml..>
<root>
<row color="green">
<field1>a</field1>
<field2>b</field2>
</row>
<row color="red">
............
</row>
</root>


...i am thinking if this format would be better or not. But my major concern
is to set color per row inside the datagrid.
<row>
<field1>a</field1>
<field2>b</field2>
<color>green</color>
</row>

thx.
 
Windy,

Sorry I was fixed at that attribute. The second one shows a datagrid.

However what color you want to change in a datagrid, AFAIK you cannot change
a color of a datagridrow.

(assuming that you use a windowsform from a webform I don't know that).

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top