Wrox Programmer Forums
|
ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 Professionals 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 10th, 2009, 07:13 AM
Authorized User
 
Join Date: Mar 2009
Posts: 74
Thanks: 5
Thanked 0 Times in 0 Posts
Default I Need Help on Gridview control

I have a gridview control that contains summary information about particular product category on each row, when I click on the select link or the row (any method provied) I would like to display the details of this category on another grid, please how can I do this in a purely programmatc way i.e at the code behind file. I am retrieving the data from the database using stored procedures and connecting with link to sql.

c#
 
Old February 3rd, 2010, 04:50 AM
Friend of Wrox
 
Join Date: Dec 2005
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to nalla Send a message via Yahoo to nalla
Default

Hi ysfkay,

Set the DataKeyName of the gridview control
Add a button control column to your gridview control to select rows in the gridview control.
User RoCommand or SelectedIndexChanged event to get the Value of the DataKey so you can select the particular record and load it in a different view.

Cheers
__________________
nalaka hewage
http://nalakahewage.blogspot.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Gridview control, Help (2) ysfkay ASP.NET 3.5 Professionals 0 December 10th, 2009 07:11 AM
Help on Gridview control ysfkay ASP.NET 3.5 Professionals 0 December 10th, 2009 07:08 AM
using gridview control, how to update? aaronabdiel ASP.NET 2.0 Basics 2 February 13th, 2008 08:41 AM
How to put a button control in a GridView control ryan.webb ASP.NET 2.0 Basics 2 December 28th, 2007 05:26 AM
GridView Control jmyers@smurfit.com Pro Visual Basic 2005 2 March 14th, 2007 10:57 PM





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