|
-
Jan 9th, 2001, 06:47 AM
#1
Thread Starter
Addicted Member
Hi All,
I have a form with a datagrid which displays a number of rows from a database. The data is input using a separate input form.
Could anyone tell me how I could click on a row in the datagrid and that in turn would bring up the selected record in the input form for editing.
Any tips would be appreciated.
Colin
-
Jan 9th, 2001, 01:42 PM
#2
Lively Member
Use the DataGrid_DblClick() event to trap a double click in the grid, then determine the selected item within the grid, return the index of the row concerned and then use that to select the data to be displayed on the subsequent form.
Sorry I did not put this into code, but I am on my kids machine and no VB installed to test with before posting.
-
Jan 10th, 2001, 03:43 AM
#3
Thread Starter
Addicted Member
Cheers, i will give that a try.
Colin
-
Feb 1st, 2001, 10:49 AM
#4
Lively Member
Colin,
Do you have an exaample of how you connected the DATA grid to show up on your form...I'm trying to actually bring up the data on the data grid..
-
Feb 2nd, 2001, 04:22 AM
#5
Thread Starter
Addicted Member
Hi pcabrol,
I'm sorry, not quite sure what you are asking for ? Are you wanting to see how to populate the grid with data or just how to link the grid to a data source or something else.
Let me know
Colin
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
|