Skip to main content
Home Forums Silverlight Design Expression Studio Blend 2.5 Where is the DataGrid ??
8 replies. Latest Post by janebush08 on September 1, 2008.
(0)
Pluginbaby
Member
552 points
217 Posts
03-13-2008 12:49 AM |
Hi,
Strange that the DataGrid is not on the Blend 2.5 toolbox, but only in VS2008 !?
mchlsync
Star
14566 points
2,730 Posts
03-13-2008 2:39 AM |
Pluginbaby:Strange that the DataGrid is not on the Blend 2.5 toolbox, but only in VS2008 !?
I also notice about that. maybe, I think DataGrid maybe under different namespace or something.
The following codes are from VS. You see the differences.
Page.xaml without DataGrid
<UserControl x:Class="SilverlightApplication1.Page" xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="400" Height="300"> <Grid x:Name="LayoutRoot" Background="White"><Button></Button> </Grid></UserControl>
Page.xaml with DataGrid
<UserControl xmlns:my="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" x:Class="SilverlightApplication1.Page" xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="400" Height="300"> <Grid x:Name="LayoutRoot" Background="White"><my:DataGrid></my:DataGrid> </Grid></UserControl>
I think that we might need some dll references or something in order to use datagird. So, Blend can't support for that or maybe, we might need to add something.
03-13-2008 2:43 AM |
Here is one solution that I found.
1. Add "System.Windows.Controls.Data.dll" as a reference to Blend.
2. Add this xmlns:my="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" in <UserControl
3. then, you can use like that <my:DataGrid></my:DataGrid>
You want to see DataGrid in Toolbox, right?
- Click on "Asset Library" (the bottom of toolbox)
- Check "Show All" checked box ( Yay! You will see DataGrid so choose it to add on toolbox) :)
Hope it helps.
csharpdi...
36 points
8 Posts
03-23-2008 12:44 PM |
Hi there,
I created a blog post on this...
http://marlongrech.wordpress.com/2008/03/22/how-can-i-get-the-datagrid-control-for-silverlight-2-beta-1-to-show-up-in-blend/
Regards
03-23-2008 3:08 PM |
Yes...
That has been done here and here too.
logicasw
50 points
25 Posts
03-28-2008 6:48 PM |
How to USE the DataGrid component in blend?
I can drop the DataGrid component in a page but how to manage columns, headers and so.
Regards.
mchlSync
03-29-2008 1:39 AM |
logicasw:I can drop the DataGrid component in a page but how to manage columns, headers and so.Regards.
There are DataGridRow or DataGridCell or etc . you can add them on your toolbox.
03-30-2008 2:15 PM |
logicasw: How to USE the DataGrid component in blend? I can drop the DataGrid component in a page but how to manage columns, headers and so. Regards.
Yes, this is quite surprising at the beginning...
You can have a look at this blog post:http://blogs.msdn.com/scmorris/archive/2008/03/21/using-the-silverlight-datagrid.aspx
janebush08
8 points
4 Posts
09-01-2008 8:48 AM |
thanks for the blog post plugin baby