G
Guest
Hello,
With the following I am merging two dataset and I see the result in the
datagrid but not in myTable.
Where might my problem be?
private void myMethod()
{
try
{
string strConn = ConfigurationSettings.AppSettings["connectionString"];
SqlConnection sqlConn = new SqlConnection(strConn);
SqlDataAdapter daRS = new SqlDataAdapter("SELECT * From myTable", sqlConn);
SqlCommandBuilder cbRS = new SqlCommandBuilder(daRS);
sqlConn.Open();
DataSet dsRS = new DataSet();
daRS.Fill(dsRS,"myTable");
PVS.myWS.Loader load = new PVS.myWS.Loader();
PVS.myWS.PVSTDS ds=load.getDataSet();
dsRS.Merge(ds,true);
dataGrid1.DataSource=dsRS;
daRS.Update(dsRS,"myTable");
sqlConn.Close();
catch (Exception ex)
{
throw ex;
}
}
With the following I am merging two dataset and I see the result in the
datagrid but not in myTable.
Where might my problem be?
private void myMethod()
{
try
{
string strConn = ConfigurationSettings.AppSettings["connectionString"];
SqlConnection sqlConn = new SqlConnection(strConn);
SqlDataAdapter daRS = new SqlDataAdapter("SELECT * From myTable", sqlConn);
SqlCommandBuilder cbRS = new SqlCommandBuilder(daRS);
sqlConn.Open();
DataSet dsRS = new DataSet();
daRS.Fill(dsRS,"myTable");
PVS.myWS.Loader load = new PVS.myWS.Loader();
PVS.myWS.PVSTDS ds=load.getDataSet();
dsRS.Merge(ds,true);
dataGrid1.DataSource=dsRS;
daRS.Update(dsRS,"myTable");
sqlConn.Close();
catch (Exception ex)
{
throw ex;
}
}