|
-
Jan 27th, 2003, 11:48 AM
#1
Thread Starter
Hyperactive Member
Datagrid
hmmm I am trying to think of the best way to ask this question.. So, here goes...
I have a datagrid on my form... Works great displaying my data fields but what I want to do is....
Make it when the data row is clicked on (Lets Say John Smith - SSN:999-99-9999) it will open a new form and display information for "John Smith" only using Textboxes and such.. not using the Datagrid... I am sure I have to get the value of what was clicked and then use a query when I display the form... My only question is how?
Any help is appreciated....
Anjari
-
Jan 27th, 2003, 12:27 PM
#2
Fanatic Member
anjari
You can use the BindingContext method of the form to determine which line was clicked and may be pick up a key value that you can use to query the database and display the data in the texboxes of the popup form. However, you'll have to requery the data in the main form on return.
Using VB.NET 2003/.NET 1.1/C# 2.0
http://del.icio.us/rajoo
Blow your mind, smoke gunpowder
Ashes to ashes, dust to dust
If God won't have you, the devil will. - Author unknown
Don't follow me, I'm lost too ...
-
Jan 27th, 2003, 12:43 PM
#3
Thread Starter
Hyperactive Member
sorry...
Sorry to ask but could you supply a small section of code?
Anjari
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|