Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 July 4th, 2005, 04:59 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Default Accessing Data in Datagrid

I have a datagrid and would like to be able to get at the data in a row that currently has focus and I would like to be able to get the data in any particular row of my choice as well. For example
  StrData = datagrid.row(1).column(4)

Thanks

Louisa

 
Old July 4th, 2005, 11:40 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

In the ItemCommandEvent of the grid:

e.Item.Cells(x).Text

 
Old July 5th, 2005, 02:44 AM
Authorized User
 
Join Date: Dec 2004
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This article explains your question
http://aspnet.4guysfromrolla.com/art...90902-1.2.aspx

Hope this helps

bdl
 
Old July 5th, 2005, 02:46 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 130
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for you help exactly what I needed

Thanks
Louisa






Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing a Cell in a Webform Datagrid hexOffender VB.NET 2002/2003 Basics 1 December 28th, 2006 01:14 AM
Accessing data From a node austinf XML 1 June 7th, 2006 02:16 AM
Accessing data on the clipboard. voneimin Javascript How-To 7 March 5th, 2004 11:30 PM
Accessing the data within a datagrid Louisa VB.NET 2002/2003 Basics 8 January 12th, 2004 07:32 AM
accessing data from Excel chikodi Servlets 1 July 31st, 2003 12:17 AM





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