Ask a questionAsk a question
 

Answersearch in different places

  • Friday, November 06, 2009 2:54 PMMassie92 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hello

    i have a project where you insert data. It's for teachers, so there are teachers who teach more than 1 course. So they insert in up to 5 different textboxes there courses. But if one teacher types math in the first and an other teachers types math in the second. They will be saved in 2 different columns. So if i filter the data and want to search for math, i get only the results of 1 column.

    var ThisCust = from Custs in DB.Leerkrachtens
                               where Custs.LkVakken1 == "math"
                               select Custs;

                dataGridView1.DataSource = ThisCust;

    what's your solution.

Answers

All Replies