p_table1 = new DataTable(); p_table1.Clear(); string questa = "SELECT TOP 50 Percent * from tblStudentInformation Where GradeLevel ='" + label2.Text + "' and Result >= 85 and SectionName IS NULL"; SqlDataAdapter rad = new SqlDataAdapter(questa, conn); rad.Fill(p_table1); dataGridView2.DataSource = p_table1;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)