Skip to main content

Microsoft Silverlight

Answered Question Blend 2.5 Where is the DataGrid ??RSS Feed

(0)

Pluginbaby
Pluginbaby

Member

Member

552 points

217 Posts

Silverlight MVP

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
Silverlight MVP / Silverlight Insider
http://weblogs.asp.net/lduveau/

mchlsync
mchlsync

Star

Star

14566 points

2,730 Posts

Silverlight MVP

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!)

Regards,
Michael Sync
Silverlight MVP

Blog : http://michaelsync.net


mchlsync
mchlsync

Star

Star

14566 points

2,730 Posts

Silverlight MVP
Answered Question

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!)

Regards,
Michael Sync
Silverlight MVP

Blog : http://michaelsync.net


csharpdiciple
csharpdi...

Member

Member

36 points

8 Posts

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

Pluginbaby
Pluginbaby

Member

Member

552 points

217 Posts

Silverlight MVP

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
Silverlight MVP / Silverlight Insider
http://weblogs.asp.net/lduveau/

logicasw
logicasw

Member

Member

50 points

25 Posts

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. 

mchlSync
mchlSync

Star

Star

14566 points

2,730 Posts

Silverlight MVP

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!)

Regards,
Michael Sync
Silverlight MVP

Blog : http://michaelsync.net


Pluginbaby
Pluginbaby

Member

Member

552 points

217 Posts

Silverlight MVP

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
Silverlight MVP / Silverlight Insider
http://weblogs.asp.net/lduveau/

janebush08
janebush08

Member

Member

8 points

4 Posts

Re: Re: Blend 2.5 Where is the DataGrid ??

thanks for the blog post plugin baby 

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities