Click here to Skip to main content
12,240,319 members (52,711 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# WPF
Hi Guys. I use xml and data transfering to datagrid as follows :

        <XmlDataProvider x:Key="carData" 
            Source="bin/Debug/carlist.xml" XPath="Cars"/>

            DataContext="{StaticResource carData}" 
            ItemsSource="{Binding XPath=Car}"
                             Header="Car Name"
                             Binding="{Binding XPath=name}"
                             Header="Car Color" 
                             Binding="{Binding XPath=color}"/>


carlist.xml :
<?xml version="1.0"?>
<!--Yurt Ekleme Paneli Bilgileri-->
    <Car ID="1">
    <Car ID="2">

How to show car name or car color in messagebox ?
Posted 4-Dec-12 4:53am

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
Web02 | 2.8.160426.1 | Last Updated 4 Dec 2012
Copyright © CodeProject, 1999-2016
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