I can now filter on one thing (input is a textbox
). But I want to filter on two textboxes
. How to do this?
I'm using a DataSet
, I added this query
to it: select * from question where questioncat = @questioncat
.
In the FillBy
i'm using this query
.
I also want to filter
on question (where question = @question)
Code:
private void btnSearch_Click(object sender, RoutedEventArgs e)
{
if (txtBxSearch.Text == "")
{
hR5DataSetVraagTableAdapter.Fill(hR5DataSet.question);
}
else
{
hR5DataSetVraagTableAdapter.FillBy(hR5DataSet.question, txtBxSearch.Text);
}
}