Solved

Silverlight: Gridview Load according to another tables ID

Posted on 2013-05-16
3
339 Views
Last Modified: 2013-05-16
Hi,

I have two entities/tables in my model.  The first one has master information regarding a customer.   The second table has detail and is related to the first table by the master's ID.

The second table's data is entered in a small gridview on the form and is saved according to the master ID but when I try to open the form again, all of the data loads except for the data in the gridview.

How do I load the gridview where master id equals detail id?
0
Comment
Question by:Annette Wilson, MSIS
  • 3
3 Comments
 

Author Comment

by:Annette Wilson, MSIS
ID: 39172601
I want to use the following query and call it after a window closes.  just don't know how to correctly write the query.

public IQueryable<Certification> GetCertByID()
        {
            return this.ObjectContext.Certification.Where(e =>  e.EvalChkList_ID = e.FORMData.ID);
        }

Open in new window

0
 

Accepted Solution

by:
Annette Wilson, MSIS earned 0 total points
ID: 39172887
public IQueryable<Certification> GetCertByID()
        {
            return this.ObjectContext.Certification.Where(e =>  e.EvalChkList_ID == e.FORMData.ID);
        }

Open in new window

0
 

Author Closing Comment

by:Annette Wilson, MSIS
ID: 39172890
Sorry,  I was jsut missing the == sign.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Resolve Dependency Issues 4 48
Server Error 11 48
.NET tools for adding thread safety to a web app? 3 19
Visual Studio 2013 and Eclipse Neon 6 13
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now