Blend 2.5 Where is the DataGrid ??
Last post 03-30-2008 2:15 PM by Pluginbaby. 7 replies.
Sort Posts:
03-13-2008 12:49 AM
Blend 2.5 Where is the DataGrid ??

Hi,

Strange that the DataGrid is not on the Blend 2.5 toolbox, but only in VS2008 !?

 

---
(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Laurent Duveau
ASP.NET MVP
http://weblogs.asp.net/lduveau/

Pluginbaby

Loading...
Joined on 11-20-2005
Canada
Posts 59
03-13-2008 2:39 AM
Re: Blend 2.5 Where is the DataGrid ??

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.
 

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Best Regards,
Michael Sync

Blog : http://michaelsync.net
Feed : http://michaelsync.net/feed

mchlsync

Loading...
Joined on 09-16-2005
Singapore
Posts 2,219
03-13-2008 2:43 AM
Marked as Answer
Re: Blend 2.5 Where is the DataGrid ??

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.  

 

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Best Regards,
Michael Sync

Blog : http://michaelsync.net
Feed : http://michaelsync.net/feed

mchlsync

Loading...
Joined on 09-16-2005
Singapore
Posts 2,219
03-23-2008 12:44 PM
Re: Blend 2.5 Where is the DataGrid ??

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 

Regards
Marlon Grech aka C# Disciple
http://marlongrech.wordpress.com

csharpdiciple

Loading...
Joined on 07-10-2007
Malta
Posts 8
03-23-2008 3:08 PM
Re: Blend 2.5 Where is the DataGrid ??

Yes...

That has been done here and here too.

---
(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Laurent Duveau
ASP.NET MVP
http://weblogs.asp.net/lduveau/

Pluginbaby

Loading...
Joined on 11-20-2005
Canada
Posts 59
03-28-2008 6:48 PM
Re: Blend 2.5 Where is the DataGrid ??

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. 

logicasw

Loading...
Joined on 03-24-2008
Posts 25
03-29-2008 1:39 AM
Re: Blend 2.5 Where is the DataGrid ??

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.  

(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Best Regards,
Michael Sync

Blog : http://michaelsync.net
Feed : http://michaelsync.net/feed

mchlsync

Loading...
Joined on 09-16-2005
Singapore
Posts 2,219
03-30-2008 2:15 PM
Re: Blend 2.5 Where is the DataGrid ??

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

 

---
(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)

Laurent Duveau
ASP.NET MVP
http://weblogs.asp.net/lduveau/

Pluginbaby

Loading...
Joined on 11-20-2005
Canada
Posts 59