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 7509963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:05:03+00:00 2026-05-29T23:05:03+00:00

I have a small app in which I have a gridview. The grid is

  • 0

I have a small app in which I have a gridview. The grid is binded to a source that looks like this (a list of):

Person{name; email; orders;} – orders is an IEnumerable.

The challenge now, is that I want the grid to load without first loading the orders list. This is where the aysnc is coming into picture. When the grid has loaded and shows the persons name and email, then it should behind the scenes start loading up the orders from each person. When the orders are ready they should be shown.

I have tried a couple of ways:

  1. load everything with async, this is an ok approach but the grid is first showing when the all the data in the source is ready. Why ?

  2. load persons source (list) without orders list and try to load orders for each person after the grid has shown. I fail to do this, because I can’t seem to find the right “hook”, in WebForms a datagrid would have a “OnItemDataBound” event I could hook into. Any clue ?

  3. Dispatcher behind the scenes stuff…to complex and rigid.

It might be control feature that I have overlooked.

Any help is much appreciated. No code avalible at this moment ( forgot it at home 🙂 )

  • 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-29T23:05:06+00:00Added an answer on May 29, 2026 at 11:05 pm

    This is how I would do it (in SILVERLIGHT):

    1. Make async call and load Persons list with an empty ObservableCollection for each of the orders… GridView shows data (Name, Email).
    2. When Persons async call is done make a second call for the orders, when that comes back fill each empty Orders collection with the appropriate orders.

    If you use an ObservableCollection then the Orders will show when each collection is populated. I’m assuming that you have some sort of key to determine which orders go with which person.

    It would be something like this when the orders come back:

    For Each p As Person In PersonsList
       Dim id = p.PersonId
       p.Orders = (From o As Order in OrdersList Where o.PersonId = id).ToList
    Next
    

    This is psudo-vb code, and is just an example. Basically the key is to use an ObservableCollection for the orders instead of a generic IEnumerable so that the collection will update when you add something to it or remove something from it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small app that has a Render thread. All this thread does
I used to have a small chat app(which was almost working), that uses PHP,
I have built a small app that has a JSlider which controls the speed
I have a small app which references the Microsoft.SqlServer.Smo assembly (so I can display
I have a small Silverlight app which downloads all of the images and text
I have created a small application which opens,reads and creates Excel files. The app
I have small web app that generate PDF files as a report. I'm trying
I have a small app that downloads some files from a remote (HTTP) server
I have a small iPhone app which has a button on the first view.
I am developing one small app in which i have multiple NSURLConnection.I have created

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.