به این تکه کد یه نگاه بنداز
به ازای هر چک باکس میتونی یه سرچ رو به برنامه اضافه کنی
string Q = "SELECT * FROM Film WHERE film_id <> 0 ";
if (checkBox1.Checked == true) Q = Q + "and film_id = N'" + txtcode.Text + "'";
if (checkBox2.Checked == true) Q = Q + "and name = N'" + txtname.Text + "'";
if (checkBox3.Checked == true) Q = Q + "and Director = N'" + txtnameD.Text + "'";
if (checkBox4.Checked == true) Q = Q + "and date = N'" + txtyers.Text + "'";
if (checkBox5.Checked == true) Q = Q + "and Genre = N'" + txtGenre.Text + "'";
if (checkBox6.Checked == true) Q = Q + "and type = N'" + txttype.Text + "'";