Click here to Skip to main content
Rate this: bad
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
0 Sergey Alexandrovich Kryukov 434
1 OriginalGriff 385
2 CHill60 230
3 CPallini 220
4 Abhinav S 200
0 Sascha Lefévre 75
1 OriginalGriff 70
2 F-ES Sitecore 55
3 Peter Leow 50
4 Dave Kreskowiak 40

Advertise | Privacy | Mobile
Web01 | 2.8.150327.1 | Last Updated 4 Dec 2012
Copyright © CodeProject, 1999-2015
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