Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6661869
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:19:48+00:00 2026-05-26T02:19:48+00:00

I created a silver light project,where i am trying to load a datagrid in

  • 0

I created a silver light project,where i am trying to load a datagrid in my main page.As I came to know that ADO.net is not supported in silverlight ,i made use of silver light enabled WCF service.I followed the example here http://www.dotnetcurry.com/ShowArticle.aspx?ID=228

I am able to get the data from the database into the service but unable to display in my page and it doesn’t throw any exception.Does it have some thing to do with the binding configurations or some thing.Because i am able to access the WCF service from the browser .so i think i am unable to load into the datagrid of my page.Here is my code

XAML:

 <Grid x:Name="LayoutRoot">
    <sdk:DataGrid x:Name="DetailsGrid" AutoGenerateColumns="False" Height="430" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="576" />
</Grid>

C#:

    DataServiceClient client = new DataServiceClient();
  client.ResourcesListCompleted  +=new EventHandler<ResourcesListCompletedEventArgs>(client_ResourcesListCompleted);
        client.ResourcesListAsync();
        InitializeComponent();

    void client_ResourcesListCompleted(object sender, ResourcesListCompletedEventArgs e)
    {

        DetailsGrid.ItemSource = e.Result;

    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:19:48+00:00Added an answer on May 26, 2026 at 2:19 am

    You’ve set AutoGenerateColumns="False" but then (assuming you haven’t left it out of the code) not specified which columns you do want to display.

    In the first instance set AutoGenerateColumns="True" to make sure you are getting data. This will display all the data for each record in the data set. If you don’t want all the data set it to False and then specify which columns you do want to use. So assuming you have a field called FirstName in your data you’d have:

    <sdk:DataGrid x:Name="dg" AutoGenerateColumns="False">
        <sdk:DataGrid.Columns>
            <sdk:DataGridTextColumn Header="First Name" 
                    Binding="{Binding FirstName}" />
        </sdk:DataGrid.Columns>
        ....
    </sdk:DataGrid>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to send my dynamically created silverlight 2 page/image to a an
I created a RoleService in my silverlight project and through that got hold of
How we can add the silverlight project into a aspx page. I had created
I am working on a project that was originally created by someone else, they
I am trying to load a Silverlight project to read every XAML file by
I have created a web application with a Silverlight project embedded in it, using
In my Silverlight 3 application, I created a custom Tooltip, that is shown when
I'm trying to work on a new project parsing some JSON data for a
I have got an error while trying to upgrade our large project to SL4.
I have created a silverlight 5 project and added a textbox control to a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.