Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 28th, 2007, 04:23 AM
Registered User
Join Date: Apr 2007
Location: , , Philippines.
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:
  #2 (permalink)  
Old December 28th, 2007, 05:21 AM
Authorized User
Join Date: Sep 2007
Location: , , Finland.
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;">


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 09:23 AM.

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