C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » WPF »

Compobox fill the data via xml


Posted Date: 03 Oct 2009      Posted By: Rammohan      Member Level: Bronze     Points: 1   Responses: 1




Hi All,


I have an xml
<Teams>
<Team>
<Compilation ID="98327759-e516-4e8e-a226-e93f35e08e7c" Name="Tony1"/>

</Team>
<Team>
<Compilation ID="98327759-e516-4e8e-a226-e93f35e08e7c" Name="Tony2"/>
<!--<Id>2</Id>
<Name>Raheel</Name>-->

</Team>
<Team>
<Compilation ID="98327759-e516-4e8e-a226-e93f35e08e7c" Name="Tony3"/>

</Team>
Teams>


like that is there. i want to bind the Name to my combobox in WPF.

Please suggest me.


if


<Team>
<Id>4</Id>
<Name>Idrees</Name>

</Team>
<Team>
<Id>5</Id>
<Name>Sagar</Name>

</Team>
<Team>
<Id>6</Id>
<Name>Gahoose</Name>

</Team>
<Team>
<Id>7</Id>
<Name>Suneel</Name>

</Team>

like that it's working fine for me.

i need first type of xml


Thanks & Regards
Ram






Responses

Author: Anuraj    03 Oct 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

What about creating a Business Object and deserialize and binding it to the treeview?

Thanks
Anuraj
THIS POSTING IS PROVIDED "AS IS" WITH NO WARRANTIES, AND CONFERS NO RIGHTS.
BEWARE OF BUGS IN THE ABOVE CODE; I HAVE ONLY PROVED IT CORRECT, NOT TRIED IT.
dotnetthoghts



Post Reply
You must Sign In to post a response.
Next : Compobox fill the data via xml
Previous : Preventing from activex
Return to Discussion Forum
Post New Message
Category: WPF

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use