R
rawCoder
Dear All,
Question
Why DataAdapter.Fill does not refresh the deleted records in the dataset?
If this is by design then how can I refresh the data and get rid of removed
records without actually refilling the dataset with clear and fill
operations?
Detailed
I have a DataAdapter refering to a table in database. The data is being
shown in a DataGrid. As the data is updated, in the table (from other
connection), it is reflected in the grid by a call to the Fill method of the
DataAdapter. All is well , but if some row is deleted then the call to Fill
method does not delete the record from its underlying DataSet. I have come
to know that calling clear method is an option but it seems so dirty -
clearing all the data and then getting it again.
Can someone plz guide Why it is done this way and what is the resolution.
Thank You
Question
Why DataAdapter.Fill does not refresh the deleted records in the dataset?
If this is by design then how can I refresh the data and get rid of removed
records without actually refilling the dataset with clear and fill
operations?
Detailed
I have a DataAdapter refering to a table in database. The data is being
shown in a DataGrid. As the data is updated, in the table (from other
connection), it is reflected in the grid by a call to the Fill method of the
DataAdapter. All is well , but if some row is deleted then the call to Fill
method does not delete the record from its underlying DataSet. I have come
to know that calling clear method is an option but it seems so dirty -
clearing all the data and then getting it again.
Can someone plz guide Why it is done this way and what is the resolution.
Thank You