I've been working on a silverlight web part and i've run across an issue and i'm not to sure if it's the way i am doing things.
The web part basically has to go through The sub webs of the current web it is in and their webs. I can do this fine and access the titles of the webs and put these in to an object perfectly.
However also in each web there is a list containing information that i require. I can get at the information but what seems to happen is it gets the information after the object has been rendered to screen.
The way i am going through the webs is simple. I load the context, load it's webs, call an executequeryasync go loop through the webs already loaded in to the context and call another executequeryasync then loop through both sets of webs(*Check bullet point) and populate the data sets and bind my info to the grids. ( This part works fine)
- Here i have added a pice of code that loads the current web that is in my for loop and it's associated lists etc. then i call another executequeryasync which goes and gets the data out of the list. Once i have this data I can't seem to put it in to the data set as this seems to run after the previous executequeryasync has run and populated the grid view already.
I was wondering if anyone had a way of doing what i am trying to do.