Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Visual Basic .NET (http://www.programmingforums.org/forum19.html)
-   -   Grid feature (http://www.programmingforums.org/showthread.php?t=11978)

salthill Nov 23rd, 2006 4:16 PM

Grid feature
 
Hi,

I'm looking for my app(may develop a standalone or web-based) to display information from a database table in an editable Grid (user could click a cell and edit contents) and on hitting a save button update the database.

I know I could achieve this using a datagrid and utilising the Edit and Update methods but is there a way to have all cells editable and update from a button.

Thanks in advance.

melbolt Nov 28th, 2006 1:50 AM

sure there's a way. If i get what you're saying, you want it to update all the records that were changed in a datagridview when a save button is clicked or something?

what i would do is put all of your data into a dataset and bind it to your datagridview. now you can simply make changes and when save button is clicked you call your DataAdapter.Update(dataset)


All times are GMT -5. The time now is 9:36 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC