private void btnSearch_Click(object sender, EventArgs e) { try { this.Cursor = Cursors.WaitCursor; // ggWebSvc.GUI gui = new FieldMapperTest.ggWebSvc.GUI(); Dictionary <string, string> dic = Toolkit.ParsePairs <string>(DataViewParams); dic[":pinumber"] = txtSearch.Text + "%"; string prms = Toolkit.ConcatPairs(dic); //DataSet ds = gui.GetData(false, "brock", "passw0rd!", DataViewName, prms, 0, 1000); //gvSearch.DataSource = ds.Tables[DataViewName]; } finally { this.Cursor = Cursors.Default; } }