p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Professional VB 2005 with .NET 3.0 ISBN: 978-0-470-12470-3
This is the forum to discuss the Wrox book Professional VB 2005 with .NET 3.0 by Bill Evjen, Billy Hollis, Bill Sheldon, Kent Sharkey, Tim McCarthy; ISBN: 9780470124703

Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional VB 2005 with .NET 3.0 ISBN: 978-0-470-12470-3 section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 26th, 2008, 04:56 PM
Registered User
 
Join Date: Apr 2008
Location: Gretna, LA, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Data Grid View Control

I am new to Visual Studio 2008 and C#. I have a Data Grid View Control on a form that contains a list of Football teams and statistics. I want to know how to find out what cell I clicked so I can load the appropriate form for the football team selected. Can anybody help?

Thanks

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old August 10th, 2009, 05:47 AM
Registered User
Points: 62, Level: 1
Points: 62, Level: 1 Points: 62, Level: 1 Points: 62, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2009
Posts: 18
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I suppose you used listbox for displaying those teams. Why don't you use combobox? It is easier to handle data from combobox (or textbox). Than you can use only one if - else if statement.
Use property of textbox or combo to start on each text change.

something like this:

if textbox1.text = "some_name" then
Dim myform As New Form2
myform.Show()
elseif textbox1.Text = "some_name_2" then
Dim myform1 As New Form3
myform1.Show()
...
end if
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Grid View Control Visual Basic 2005 dattatraydongare BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 3 November 6th, 2008 06:35 AM
Paging Data grid view Prakash001 Visual Basic 2005 Basics 0 February 6th, 2008 04:07 AM
grid view control knightmare102 BOOK: Professional VB 2005 with .NET 3.0 ISBN: 978-0-470-12470-3 0 June 11th, 2007 02:54 AM
How to display data into Grid View? Somesh ASP.NET 2.0 Professional 5 May 25th, 2007 08:07 AM
Data Grid View CoolDude C# 2005 3 March 10th, 2007 05:37 AM



All times are GMT -4. The time now is 09:52 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc