Wrox Programmer Forums
|
BOOK: Beginning ASP.NET 4 : in C# and VB
This is the forum to discuss the Wrox book Beginning ASP.NET 4: in C# and VB by Imar Spaanjaars; ISBN: 9780470502211
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 4 : in C# and VB 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 14th, 2012, 01:31 PM
Authorized User
 
Join Date: May 2012
Posts: 24
Thanks: 5
Thanked 1 Time in 1 Post
Default Gridview

hello sir
i have a gridview . i am asking that i would select a specific cell in a specific row.

i am using the underlying method but its not working please help.

Code:
protected void GridView1_RowUpdated(object sender, GridViewUpdatedEventArgs e)
    {
        String PrjName = GridView1.SelectedRow.Cells[6].Text;
        

            Message.Text = "value is" + PrjName;
        
        }
 
Old December 14th, 2012, 02:25 PM
Authorized User
 
Join Date: Nov 2012
Posts: 40
Thanks: 8
Thanked 5 Times in 4 Posts
Default

Hi Arman,

Maybe i totally dont understand the question but what i suppose you are asking is

1) a way to select a particular column related to row from database

well try sql (page 408 beginning ASP.NET4)>> SELECT ColumnName [, AnotherColumnName] FROM TableName
..just add a where clause

SELECT ColumnName [, AnotherColumnName] FROM TableName WHERE RowName = 'row_value'

the TRY it out on page 411 focuses on the same/ all you need is to change the SQL query according to your need.

Last edited by 07Raghav; December 14th, 2012 at 02:59 PM..





Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView arun_babu_a BOOK: Beginning Visual C# 2010 1 November 3rd, 2011 04:22 AM
The GridView 'GridView' fired event PageIndexChanging which wasn't handled Phil Critchley ASP.NET 4 General Discussion 10 February 19th, 2011 09:55 AM
gridview nested gridview phuchoang2583 ASP.NET 3.5 Basics 0 January 26th, 2011 12:08 AM
Copy One Row from Gridview to Gridview lvprasad2007 ASP.NET 2.0 Professional 0 July 28th, 2009 08:29 AM
Get GridView Cell Value Based on GridView Column stublair C# 2008 aka C# 3.0 0 September 4th, 2008 08:30 AM





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