Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB.NET 1.0 > VB.NET 2002/2003 Basics
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old June 18th, 2004, 08:40 AM
Friend of Wrox
Join Date: Jul 2003
Location: York, , United Kingdom.
Posts: 142
Thanks: 0
Thanked 2 Times in 2 Posts

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.

Reply With Quote
  #12 (permalink)  
Old June 18th, 2004, 08:43 AM
Authorized User
Join Date: Jun 2004
Location: , , .
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts

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

Reply With Quote
  #13 (permalink)  
Old June 18th, 2004, 08:49 AM
Authorized User
Join Date: Jun 2004
Location: , , .
Posts: 37
Thanks: 0
Thanked 0 Times in 0 Posts

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

Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 08:52 AM.

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