|
-
Sep 13th, 2002, 08:21 AM
#1
Thread Starter
Fanatic Member
Copy a row from 1 grid to another
I have 2 datagrids.
One contains a list of records (grid1) and the other (grid2) is empty.
When the user clicks on a record on grid 1 I want that record to be copied to grid2.
Can someone tell me how I go about this.
Thanks in Advance
It's nearly Saturday - Boozing in Whitley Bay
-
Sep 22nd, 2002, 04:24 AM
#2
Lively Member
You can do that easily -- i am just posting logic....
for Instance the name of the grids will be grdABC and grdXYZ
If you want to copy a row from grdABC to grdXYZ then
grdXYZ.columns(0).value=grdABC.columns(0).value
grdXYZ.columns(1).value=grdABC.columns(1).value
=--=-===
---------
Like that U can do till the last column
I think this will work for U
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
|