Exemplo n.º 1
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            PersonV2 temp = new PersonV2();
            //Run the search using
            DataSet ds = temp.SearchPersonV2(txtFNameSearch.Text, txtLNameSearch.Text);

            //output
            dataGrid.DataSource = ds;                                  //point datagrid to dataset
            dataGrid.DataMember = ds.Tables["PersonV2"].ToString();    // What table in the dataset?
        }