Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 28th, 2007, 04:23 AM
Registered User
Join Date: Apr 2007
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Default How to update a selected row from gridview control

Hello Experts!:D

I want to create a DataGrid view, each row has select button
when a user clicks the 'select' button, a window pops-up
displaying the selected row(from gridview--parent page)
then the user now can update the row..(maybe by click a submit button)

i can make windows pop-up, and select button on each row..
but i can;t display the selected row into the pop-up window.

any experts advice? examples, source codes or everything that will help are very much welcome:D

Thanks in advance:D

The Following User Says Thank You to ryan.webb For This Useful Post:
Old December 28th, 2007, 05:21 AM
Authorized User
Join Date: Sep 2007
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts

Pass some identification parameter(s) to popup window as GET parameter (in URL). When popup opens, load selected row from DB using those identification parameter(s).

Tricky part is to get gridview refresh itself after popup is closed. You can do this by JavaScript (a quick, untested example):

Parent page
<script type="text/javascript">

<script type="text/javascript">


<asp:Button ID="CloseButton" runat="Server" Text="Close" OnClientClick="CloseMe(); return false;">

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pass gridview selected row msbsam ASP.NET 2.0 Basics 1 March 4th, 2008 09:17 AM
using gridview control, how to update? aaronabdiel ASP.NET 2.0 Basics 2 February 13th, 2008 08:41 AM
Deleting selected row in ListBox YoungFools Excel VBA 1 April 19th, 2007 09:14 AM
Getting Data from selected row in gridview JoinTTT ASP.NET 2.0 Professional 3 April 17th, 2007 02:14 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.