How to remove rows from a DataTable without deleting form the database



I have a data table that is connected to a database table with a data
adapter in the 'standard' manner.

However I want to be able to remove selected rows from the data table (i.e.
no longer include them in the set that is displayed to the user) but I don't
want to delete the corresponding row from the database.

I've tried using the .Rows.Remove() method but an exception is thrown to say
I don't have a 'delete' command in the data adapter (which I don't of
course).

Because of the way the 'user interface' works, I can't build up an SQL
string that represents the current set of records (the user can "add to" and
"remove from" the current set of records - there is no underlying SQL
statement that represents the totality of the users additions and removals)
so I can't just clear the table and re-fill it.

Is there a way to do this?

Thanks

Susan

.



Relevant Pages

  • Re: How to remove rows from a DataTable without deleting form the database
    ... However I want to be able to remove selected rows from the data table ... want to delete the corresponding row from the database. ... I don't have a 'delete' command in the data adapter (which I don't of ... "remove from" the current set of records - there is no underlying SQL ...
    (microsoft.public.dotnet.general)
  • ANN: Sequel 2.8.0 Released
    ... Sequel provides thread safety, connection pooling and a concise DSL ... for constructing database queries and table schemas. ... if you want to, but the results and API are adapter dependent, ... Model associations, getting the schema, joins, and many other ...
    (comp.lang.ruby)
  • ANN: Sequel 3.0.0 Released
    ... Sequel is a lightweight database access toolkit for Ruby. ... Sequel provides thread safety, connection pooling and a concise DSL ... Sequel now has an Amalgalite adapter. ...
    (comp.lang.ruby)
  • RE: BizTalk 2006, clustered dbs, failover problems
    ... HTTP adapters BizTalk will kindly notify the caller it failed processing ... adapter, although I believe that without SQL the adapters won't pick up files ... I have a problem with lost messages occuring during SQL database failover. ... BizTalk host running outside cluster. ...
    (microsoft.public.biztalk.general)
  • Re: ANN: Sequel 2.10.0 Released
    ... Sequel provides thread safety, connection pooling and a concise DSL ... for constructing database queries and table schemas. ... A DataObjects adapter was added that supports PostgreSQL, ... A Firebird Adapter was added, ...
    (comp.lang.ruby)