 |
| Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Classic ASP Databases 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
|
|
|
|

August 6th, 2004, 02:23 PM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Using Datagrid...getting data on separate form
Hi,
I am new to .NET technology and trying to use Datagrid to retrieve data from the database. This part is working for me. Since I cannot accomodate all the fields on the datagrid, to edit the record I am transferring to another page on edit_command. At this point I have the row index available thru e.item.itemindex, but I need the value of the column so that on the detail page I can pull the selected record using the "where clause". I need the column value rather than row index. Any help on this will be greatly appreciated. Thanks.
|
|

August 7th, 2004, 01:52 AM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
|
|
As this is a classic ASP forum, your post best fits into ASPX Beginners forum.
Just a guess, are you looking for e.Item.DataItem or e.Item.Cells(CELLNUMBER).Text ???
CELLNUMBER can be 1, 2, 3...
_________________________
- Vijay G
Strive for Perfection
|
|

August 7th, 2004, 01:44 PM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Vijay. Thanks for your response. I tried this but it doesn't work. You are right I should have posted it in .NET section.f I will do so. In the meanwhile, if you find the answer, please post it.
Thanks.
Renu
Quote:
quote:Originally posted by happygv
As this is a classic ASP forum, your post best fits into ASPX Beginners forum.
Just a guess, are you looking for e.Item.DataItem or e.Item.Cells(CELLNUMBER).Text ???
CELLNUMBER can be 1, 2, 3...
_________________________
- Vijay G
Strive for Perfection
|
|
|

August 7th, 2004, 04:47 PM
|
|
Authorized User
|
|
Join Date: Aug 2004
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Vijay,
I got it working. I don't know what I did wrong earlier. I used e.item.cells(0).text and I got the value. Thanks a lot for your help!
Renu
Quote:
quote:Originally posted by happygv
As this is a classic ASP forum, your post best fits into ASPX Beginners forum.
Just a guess, are you looking for e.Item.DataItem or e.Item.Cells(CELLNUMBER).Text ???
CELLNUMBER can be 1, 2, 3...
_________________________
- Vijay G
Strive for Perfection
|
|
|

August 7th, 2004, 09:52 PM
|
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Hi Renu,
Glad that I could help.:)
Also a point to note, while replying, please don't hit the "Reply with Quote" button, as that would contain the whole of the previous message and make the page look cluttered. I am not totally against it, just a thought. You can always delete the quote while replying.
Cheers!
_________________________
- Vijay G
Strive for Perfection
|
|
 |