-
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
-
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.
-
sorry...
Sorry to ask but could you supply a small section of code?
Anjari