private void txtSearch_TextChanged(object sender, EventArgs e) { DbStudent.DisplayAndSearch("SELECT ID, Name, Reg, Class, Section FROM student_table WHERE Name Like'%" + txtSearch.Text + "%'", dataGridView); }
public void Display() { DbStudent.DisplayAndSearch("SELECT ID, Name, Reg, Class, Section FROM student_table", dataGridView); }