string ConnectionString = "data source=JOEL-PC;initial catalog=Northwind;" + "integrated security=SSPI;persist security info=True;workstation id=JOEL-PC;packet size=4096"; SqlDataAdapter MyTestAdapter = new SqlDataAdapter("CustOrderHist",ConnectionString); MyTestAdapter.SelectCommand.CommandType = CommandType.StoredProcedure; MyTestAdapter.SelectCommand.Parameters.Add(new SqlParameter("@CustomerID",SqlDbType.NChar, 5)); MyTestAdapter.SelectCommand.Parameters["@CustomerID"].Value = this.txtCustID.Text; // *** this works *** DataSet MyTestDataSet = new DataSet(); // *** this doesn't work *** //SPDataset1 MyTestDataSet = new SPDataset1(); MyTestAdapter.Fill(MyTestDataSet); this.dataGrid1.DataSource = MyTestDataSet.Tables[0];Thanks.