Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Dependent grid problem

Dependent grid problem

Scheduled Pinned Locked Moved ASP.NET
helpcsharpcsstutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bigphish
    wrote on last edited by
    #1

    I am new to .net developement..stuck with an issue.. I have 2 grids in a page...Maingrid( key:- EmpID) and a Childgrid (key:- EmpID,PeriodID) For Each Maingrid details there will be one or more corresponding Childgrid details. When user selects a Maingrid detail record (ie, when selecting a row), corresponding Childgrid detail will be loaded in the Childgrid …(same as dependent grid.) How to load the 2nd grid according to the 1st grid row selection?

    protected void rdg_Maingrid_ItemCommand1(object source, GridCommandEventArgs e)

    {
        if (e.CommandName.ToString().ToUpper() == "RowClick")
        {
    
            //code for retrieving corresponding data in the budget grid..
    
        }
    }
    

    and I have delete ,edit options in both the grids. Anyhelp will be appreciated.

    B 1 Reply Last reply
    0
    • B bigphish

      I am new to .net developement..stuck with an issue.. I have 2 grids in a page...Maingrid( key:- EmpID) and a Childgrid (key:- EmpID,PeriodID) For Each Maingrid details there will be one or more corresponding Childgrid details. When user selects a Maingrid detail record (ie, when selecting a row), corresponding Childgrid detail will be loaded in the Childgrid …(same as dependent grid.) How to load the 2nd grid according to the 1st grid row selection?

      protected void rdg_Maingrid_ItemCommand1(object source, GridCommandEventArgs e)

      {
          if (e.CommandName.ToString().ToUpper() == "RowClick")
          {
      
              //code for retrieving corresponding data in the budget grid..
      
          }
      }
      

      and I have delete ,edit options in both the grids. Anyhelp will be appreciated.

      B Offline
      B Offline
      Brij
      wrote on last edited by
      #2

      Have a look on Link it'll help you.

      Cheers!! Brij Check my latest Article :URL Routing with ASP.NET 4.0

      B 1 Reply Last reply
      0
      • B Brij

        Have a look on Link it'll help you.

        Cheers!! Brij Check my latest Article :URL Routing with ASP.NET 4.0

        B Offline
        B Offline
        bigphish
        wrote on last edited by
        #3

        In this example it shows gris in a row..but in my scenario, two different grids are there.I dont know how to bind data in to the 2nd grid according to the row selection of the first grid.. I am using telerik rad grid.

        B 1 Reply Last reply
        0
        • B bigphish

          In this example it shows gris in a row..but in my scenario, two different grids are there.I dont know how to bind data in to the 2nd grid according to the row selection of the first grid.. I am using telerik rad grid.

          B Offline
          B Offline
          Brij
          wrote on last edited by
          #4

          I dont have much idea about telerik grid. But in rdg_Maingrid_ItemCommand1 event you can find the row of main grid and accordingly you can fetch the record and bind it in child grid.

          Cheers!! Brij Check my latest Article :URL Routing with ASP.NET 4.0

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups