Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: GridView prob

  1. #1
    New to the CF scene
    Join Date
    May 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    GridView prob

    hi!

    we're doing a website.. and one of the pages has a gridview and a form that is related to it. so whenever i click on one of the rows on the gridview , i want the information to appear on the form. it's like connected...how do i do that?

    i have been searching for some codes but seem not to find any..

    thanks in advance for any help!!

  • #2
    Regular Coder Freon22's Avatar
    Join Date
    May 2005
    Location
    USA
    Posts
    287
    Thanks
    3
    Thanked 5 Times in 5 Posts
    You can relate a gridview to a formview. When you are configuring the data source for the formview.

    First in your gridview have a Select now when you are setting up your datasource for the formview. Under Define Paraneters you set the
    Parameter Source = Control
    ControlID = GridView1

    So now when you click the Select on one of your gridview rows it will show on your formview. The formview requires the selectvalue from the gridview inoder to query the database.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •