Take the 2-minute tour ×

I have made a database for my application and it uses an sdf database. When I query the database and put it in an ObservableCollection I get the information but how do I access the elements within? Any help?

var mathItemsInDB = from Math_Info math in mathDB.Math_Information
                            where math.mathID == 0 select math;

        Math_Info_Items = new ObservableCollection<Math_Info>(mathItemsInDB);


    private void displayProblem()
        //here i would like to display the mathproblem fetched from the db and not an already created array
        this.MathProblem.Text = mathProblems[problemNumber];    //displays the mathproblem/equation
share|improve this question

1 Answer 1

I have not tried it but mathProblems.ElementAt()?

share|improve this answer
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. –  Avada Kedavra Nov 19 '12 at 9:24

Your Answer


