private void button1_Click(object sender, EventArgs e) { PersonV2 temp = new PersonV2(); DataSet ds = temp.SearchPersonv2(txtFname.Text, txtLname.Text); dgvResults.DataSource = ds; dgvResults.DataMember = ds.Tables["PersonV2_Temp"].ToString(); }