Wrox Programmer Forums
|
VB.NET 2002/2003 Basics For coders who are new to Visual Basic, working in .NET versions 2002 or 2003 (1.0 and 1.1).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB.NET 2002/2003 Basics 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 June 18th, 2004, 08:40 AM
Friend of Wrox
 
Join Date: Jul 2003
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts
Default

As I explained, you need to do the following to get information on the entire row (I thought you were just interested in the cell clicked on)

 get a handle on the row just clicked on...
Dim dr As Datarow = ds.Tables("{MyTable}").Rows(cell.RowNumber)

' populate text boxes...
textbox1.text = dr(0)
textbox2.text = dr(1)
textbox3.text = dr(2) ' and so ad nauseum...


In using this code, you get a handle on the row and you can then use this row to populate your text boxes.

 
Old June 18th, 2004, 08:43 AM
Authorized User
 
Join Date: Jun 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

im sorry for being a pest im new to vb.net, i wanted to retrieve the entire row selected, im so confused, wht code do i need to put into my click event handler

 
Old June 18th, 2004, 08:49 AM
Authorized User
 
Join Date: Jun 2004
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes it worked!!!!!!!! thanks alot mate






Similar Threads
Thread Thread Starter Forum Replies Last Post
populating a listbox with a field contains comma bjcountry Access 3 February 17th, 2016 05:07 PM
populating drop down through text field nasirmunir Javascript How-To 5 June 30th, 2008 11:01 AM
A form field list populating based on another fiel ebburks Access 2 June 3rd, 2006 09:37 AM
Populating field Popper Javascript How-To 10 September 23rd, 2004 06:06 PM
Automate adding record and populating field bmurrin Access 3 January 29th, 2004 12:25 PM





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