stringsel = "select * from test where pid ='"+ dg1.Rows[i].Cells["pid"].Value + "' And Month= '"+ Month.SelectedIndex + "' And year= '"+ year.Text + "' ";
اینجا بررسی کردم دیگه . مگه درست نیست ؟