Click here to Skip to main content
15,889,595 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I`ve problem with connecting my C# client to PostgreSQL database. I use NPGSQL adapter to successfully establish a connection but then i`ve no idea what to do... I managed to apply change to a database via code... but...
The main question is:
How to apply changes from C# client to Postgresql database using dataGridView live/via button click...

I`ve created dataset, made it read changes from datagridview, but to apply changes via datagridview (simply put - you fill your table on client side and then via button click or event it is saved to database)?
I`ve searched for entire week for answer and can`t find any info not on google or anywhere else...

I appreciate any advice/assistance/code, thank you.
Posted

I have done something similar to this last year and I still have my "database.cs" class, I uploaded on my dropbox, take a look.. I hope it helps!

http://dl.dropbox.com/u/5986982/Database.cs[^]

Regards,
Felipe
 
Share this answer
 
In fact, I have written a tutorial yesterday, if you still have that in mind, take a look please :)

http://codeabout.wordpress.com/2012/03/08/working-with-postgres-database-and-c-by-using-npgsql-and-reflection/[^]
 
Share this answer
 
Comments
David-Lussy 6-Mar-22 6:02am    
The page is no longer valid : message 404

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900