Information générale
Titre:
Adding a new record to a datatable in a dataset
All,
I have a blank DataTable (TableName) in a DataSet (objDataSet) to which I want to add an empty row. I filled the DataSet from a parameterized select statement with a parameter value which cannot be in the table. I check for the existance of the table before I try to add a new row. I use the following comamnd:
objDataSet.Tables(TableName).NewRow()
After the above is executed I check the rowcount and it is still 0. I have placed the command in a Try block, and no errors were caught.
What am I doing wrong?
TIA
Rex
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement