Sharing our knowledge

Michael Sync

Silverlight 2 (beta1): Styling the Datagrid & Formating Datagrid Date Column

May 8th, 2008 by Michael Sync

This sample will demonstrate how to create the custom style for Datagrid and how to format the column in Silverlight Datagrid.

Download : SL2DataGridWithStyle.zip (520 KB)

silverlight Datagrid with Custom Style


7 Responses

  1. Tom Cassidy Says:

    If i download the zip and load it into VS2008, I get errors because the property “Name” isn’t qualified in the x xml namespace. Is there something I need to configure on my end or do I just need to qualify each occurrence of “Name”? Thanks — Tom

  2. Michael Sync Says:

    Hello Tom,

    No need to configure on your end. Just download and extract it in your machine. then, open it in VS 2008.. That’s all…

    Did you modify something? Are you getting this error at runtime or design time? Can you give me full error message?

  3. Michael Sync Says:

    Hi Tom,

    You can leave those errors… If you take a look at the sourcecode (MixControl) from Microsoft, you will see the same error. Just take a look at generic.xaml from Controls.Data project..

    I think it’s by-design issue so far… You will have to leave them … Please try to compile and run the app… You will able to do that without any problemm..

  4. Wöchentliche Rundablage: ASP.NET MVC, Silverlight 2, TDD, WPF, jQuery… | Code-Inside Blog Says:

    [...] Silverlight 2 (beta1): Styling the Datagrid & Formating Datagrid Date Column [...]

  5. Weekly Links: ASP.NET MVC, Silverlight 2, TDD, WPF, jQuery… | Code-Inside Blog International Says:

    [...] Silverlight 2 (beta1): Styling the Datagrid & Formating Datagrid Date Column [...]

  6. otherslikeyou.com » links for 2008-08-13 [delicious.com] Says:

    [...] Silverlight 2 (beta1): Styling the Datagrid & Formating Datagrid Date Column (tags: silverlight) [...]

  7. periyasamy Says:

    Hi,
    I am working with silverlight 2.0. While opening the solution it show that “This project was developed previous version of silverlight. Do you to upgrade now”. If click yes it shows error in grid column name. Please upgrade the project
    Thank you.

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.