credo che hai dimenticato a dire al dataAdapter che i dati del DataTable possono essere soggetti a modifiche.
prova a cambaire la routine di estrazione così:
public void DBRead(string pTableName,string pReadCondition, out DataSet pDataSet)
{
string vConnectionString = ConfigurationSettings.AppSettings["connectionString"].ToString();
OdbcConnection vConnection = new OdbcConnection(vConnectionString);
OdbcCommand vCommand = vConnection.CreateCommand();
DataSet vDataSet = new DataSet();
vConnection.Open();
vCommand.CommandText = pReadCondition;
OdbcDataAdapter vcAdapter = new OdbcDataAdapter();
//-- le seguenti servono solo in caso è possibile l'aggiornamento --
OdbcCommandBuilder cb = new OdbcCommandBuilder(vcAdapter);
cb.RefreshSchema();
//------------------------------------------------------------------
vcAdapter.SelectCommand = vCommand;
//-- le seguenti servono solo in caso è possibile l'aggiornamento --
vcAdapter.DeleteCommand = cb.GetDeleteCommand();
vcAdapter.InsertCommand = cb.GetInsertCommand();
vcAdapter.UpdateCommand = cb.GetUpdateCommand();
//------------------------------------------------------------------
vcAdapter.Fill(vDataSet);
vConnection.Close();
pDataSet = vDataSet;
}
Vincenzo
Programmatore sbilenco