Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

postponing changes to the database while using gridview-sqldatasoruce

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Aamir Ghanchi - 02 Oct 2007 22:17 GMT
http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/msg/01cd
ac5093057079


Hi, above is the link to a question posted by soomeone in this
usergroup an year ago, but it never got answered. I have exactly the
same question.
Is their a way for a (non paged) gridview-sqldatasource duo to hold
off any changes to the actual database till the user clicks a save
button (outside of the gridview). I would love to use the edit/delete
functionality gridview provides, but not to make the changes right
away to the database when the user clicks the Update or Delete
linkbuttons in the EditItemTemplate. Any response will be appreciated.
thanks!
bruce barker - 02 Oct 2007 22:52 GMT
trival, as this is builtin.

use a dataset (stored in session) to bind the gridview to. then on save,
apply the dataset changes. extra points for using a typed dataset.

-- bruce (sqlwork.com)

> http://groups.google.com/group/microsoft.public.dotnet.framework.aspnet/msg/01cd
ac5093057079

>
[quoted text clipped - 8 lines]
> linkbuttons in the EditItemTemplate. Any response will be appreciated.
> thanks!
Aamir Ghanchi - 03 Oct 2007 13:53 GMT
> trival, as this is builtin.
>
[quoted text clipped - 17 lines]
>
> - Show quoted text -

Bruce, thanks for the response.

This means that I have to do away with the sqldatasource then. oh
well.
thanks again!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.