private void comboBox1_SelectionChangeCommitted(object sender, EventArgs e) { BLL.SelectData(this.reportViewer1, "sp_Select_Student_ExamReport2", new List <System.Data.SqlClient.SqlParameter>() { new System.Data.SqlClient.SqlParameter("@studentID", comboBox1.SelectedValue) }); }
private void comboBox1_SelectionChangeCommitted(object sender, EventArgs e) { if (comboBox1.SelectedItem != null) { BLL.SelectData(this.reportViewer1, "SP_Select_InsructorReport", new List <SqlParameter>() { new SqlParameter("@InstructorID", Convert.ToInt32(comboBox1.SelectedValue)) }); } }