Click here to Skip to main content
12,765,284 members (37,126 online)
Rate this:
Please Sign up or sign in to vote.
See more: XML

I was stuck in binding the XML Data for Windows UI Controls using C#

The structure of my XML Sheet is as below

<?xml version="1.0"?>
-<MySelectedValues> -
    <Author>David Morrision</Author>
    <Description>Visual studio 2008</Description>

    <Author>Edward Steve</Author>
    <Description>Visual studio 2008 with ASP.NET 3.5</Description>

    <BookTitle>Nutritions Food</BookTitle>
    <Author>Balley Moore</Author>
    <Description>Nutritions Food for Long Life</Description>

    <BookTitle>Server Book</BookTitle>
    <Author>Ronald Billy</Author>
    <Descriptiion> SQL SERVER 2008 Advacned R2</Description>

    <BookTitle>Server Book</BookTitle>
    <Author>Sunil Mitra</Author>
    <Description>Widnows Server 2008 </Description>

1. I have 3 Combo box and one Rich Text Box.
2. I want to filter the data in Combo box one after the another using the selected Index/Selected value or whatever suits best in the combo box

Eg: If i Select the "Book Caption" as Technology , I want to list all the Book Tile in the next combo Box as well if i select the "Book Title" i want to list all the Authors in Combo Box

3. Finally the description of the Book should to be displayed in the rich text box corresponding to selections

Thanks in Advance and appreciate your help

Posted 4-Nov-12 1:18am
Updated 4-Nov-12 1:54am
It's a bad idea to bind XML files directly to UI. So, I don't see much sense in answering. You should better have some data model (in memory) which persists in XML or elsewhere. UI should "know" only the model, not XML. It could be as simple as Populate/Update.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170217.1 | Last Updated 4 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100