Results 1 to 2 of 2

Thread: Copy a row from 1 grid to another

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    Smile 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

  2. #2
    Lively Member
    Join Date
    Jan 2002
    Location
    Posts
    114
    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
  •  



Click Here to Expand Forum to Full Width