On Thu, Oct 16, 2008 at 3:33 PM, Steve Harp <[EMAIL PROTECTED]> wrote:
> I have a class method that returns a DataSet to my application.  I bind the
> DataSet to an DataGridView and would like to do the Add/Edit/Delete stuff

This is just done by any basic grid by default (when not disabled).
Just bind your DataSet to Grid and you're done.

> from within the grid.  How do I update the database from the DataSet?  The
> only examples I've seen use a DataAdapter but all I have access to in my
> application is a DataSet.  Is it possible to update a DataAdapter from an
> existing DataSet or is there another way to update the database?

If you have instance of DataAdapter, you just specify Update-, Delete-
and InsertCommand and call Update method for this particular table.
Or you can go thru DataTable in DataSet and check inserted, deleted
and modified rows and performs correspondent steps to update DB.

-- 
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to