Click here to Skip to main content
15,919,340 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am new in wcf...I am making the datagrid in silverlight3..I want that the data of this grid should come at run time

my coding is this





<usercontrol

xmlns="http: schemas.microsoft.com="" winfx="" 2006="" xaml="" presentation"=""

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"


xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

mc:ignorable="d"


xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"

x:class="ourproject.MainPage"

d:designwidth="640" d:designheight="480">

<grid x:name="LayoutRoot" background="white">


<data:datagrid x:name="firstgrid" autogeneratecolumns="False" margin="72,98,65,188">

<data:datagrid.columns>

<data:datagridtextcolumn header="Employee Name" width="150" binding="{Binding name}">

<data:datagridtextcolumn header="Salary" width="150" binding="{Binding salary}">

<data:datagridtextcolumn header="Post" width="150" binding="{Binding post}">












but the error is showing



"The type or namespace name 'DataGrid' does not exist in the namespace 'System.Windows.Controls' (are you missing an assembly reference?) c:\documents and settings\sag\desktop\ourproject\ourproject\obj\debug\mainpage.g.cs 40 42 ourproject"



PLz help me
Posted

1 solution

wrote:
I am new in wcf...I am making the datagrid in silverlight3


Silverlight or WPF? And your code did not got pasted in this question.
 
Share this answer
 

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