Populates GridView2 based on selected row from GridView1

Discussion in 'ASP .Net Web Controls' started by PetroTiburcio, Jun 7, 2013.

  1. PetroTiburcio

    PetroTiburcio

    Joined:
    May 17, 2013
    Messages:
    7
    Greetings! Help with gridviews. I have 2 gridview on my page: on GridView1 I have a column with select link, Id and Name which looks like this:

    Select | Id | Name
    select | 101 | Jack
    select | 102 | Cath

    Now, what I am trying to do is let's say, i clicked the select from the first row which is Jack, now my GridView2 will display the products ordered by Jack which looks like this:

    Id | ProductID
    101 | 111
    101 | 222
    101 | 333

    and if Cath whom I selected, GridView2 will change the display products which ordered by Cath:

    Id | productID
    102 | 111
    102 | 333
    102 | 555

    In short, I am trying to populate GridView2 based on the selected row from the GridView1. I am using asp.net with c#. Kindly help me with this, thank you very much in advance. God bless :)
    PetroTiburcio, Jun 7, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?Um9zZQ==?=

    Dropdownlist populates Datagrid

    =?Utf-8?B?Um9zZQ==?=, Aug 29, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    549
    =?Utf-8?B?Um9zZQ==?=
    Aug 29, 2005
  2. gk
    Replies:
    1
    Views:
    449
  3. =?Utf-8?B?a2VuIHM=?=

    javascript populates dropdownlist

    =?Utf-8?B?a2VuIHM=?=, Feb 10, 2007, in forum: ASP .Net
    Replies:
    2
    Views:
    363
    Ken Smith
    Feb 11, 2007
  4. gh
    Replies:
    3
    Views:
    411
    Bogdan
    Sep 26, 2008
  5. egsdar
    Replies:
    0
    Views:
    3,071
    egsdar
    Nov 4, 2008
Loading...

Share This Page