Click here to Skip to main content
15,886,778 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear sir

i have data in entities databaise sqlserver2008 in case view data in datagrid don't

see data but out in data grid checkbox in places filds.

this my code
<usercontrol>
x:Class="BusinessApplication5.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
xmlns:dataControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.DataForm.Toolkit"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">

<grid x:name="LayoutRoot" style="{StaticResource LayoutRootGridStyle}" xmlns:x="#unknown">

<border x:name="ContentBorder" style="{StaticResource ContentBorderStyle}">
<navigation:frame x:name="ContentFrame" style="{StaticResource ContentFrameStyle}" xmlns:navigation="#unknown">
Source="/Home" Navigated="ContentFrame_Navigated" NavigationFailed="ContentFrame_NavigationFailed">
<navigation:frame.urimapper>
<urimapper:urimapper xmlns:urimapper="#unknown">
<urimapper:urimapping uri="" mappeduri="/Views/Home.xaml">
<urimapper:urimapping uri="/{pageName}" mappeduri="/Views/{pageName}.xaml">





<grid style="{StaticResource NavigationOuterGridStyle}">
<grid x:name="NavigationGrid" style="{StaticResource NavigationGridStyle}">

<border x:name="BrandingBorder" style="{StaticResource BrandingBorderStyle}">
<stackpanel x:name="BrandingStackPanel" style="{StaticResource BrandingStackPanelStyle}">

<contentcontrol style="{StaticResource LogoIcon}">
<textblock x:name="ApplicationNameTextBlock" style="{StaticResource ApplicationNameStyle}">
Text="{Binding ApplicationStrings.ApplicationName, Source={StaticResource ResourceWrapper}}"/>




<border x:name="LinksBorder" style="{StaticResource LinksBorderStyle}">
<stackpanel x:name="LinksStackPanel" style="{StaticResource LinksStackPanelStyle}">

<hyperlinkbutton x:name="Link1" style="{StaticResource LinkStyle}">
NavigateUri="/Home" TargetName="ContentFrame" Content="{Binding Path=ApplicationStrings.HomePageTitle, Source={StaticResource ResourceWrapper}}"/>

<rectangle x:name="Divider1" style="{StaticResource DividerStyle}">

<hyperlinkbutton x:name="Link2" style="{StaticResource LinkStyle}">
NavigateUri="/About" TargetName="ContentFrame" Content="{Binding Path=ApplicationStrings.AboutPageTitle, Source={StaticResource ResourceWrapper}}"/>






<border x:name="loginContainer" style="{StaticResource LoginContainerStyle}">
<!-- LoginStatus will be added here in code behind. This is required for the designer view to work -->

<sdk:datagrid autogeneratecolumns="False" height="240" horizontalalignment="Left" margin="6,91,0,0" name="dgcar" verticalalignment="Top" width="619" flowdirection="RightToLeft" xmlns:sdk="#unknown">
<sdk:datagrid.columns>
<sdk:datagridcheckboxcolumn binding="{Binding Path=DateAppointment,Mode=TwoWay}" header="تاريخ الاستلام " canuserreorder="True" canuserresize="True" canusersort="True" width="100">
<sdk:datagridcheckboxcolumn binding="{Binding Path=N_Car,Mode=TwoWay}" header="رقم السيارة" canuserreorder="True" canuserresize="True" canusersort="True" width="150">
<sdk:datagridcheckboxcolumn binding="{Binding Path=NameCustemer,Mode=TwoWay}" header="اسم الزبون" canuserreorder="True" canuserresize="True" canusersort="True" width="200">
<sdk:datagridcheckboxcolumn binding="{Binding Path=PhoneCustemer,Mode=TwoWay}" header="رقم التلفون " canuserreorder="True" canuserresize="True" canusersort="True" width="*">






Posted

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900