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. How to access a datagrid from a web page in a ...

How to access a datagrid from a web page in a ...

Scheduled Pinned Locked Moved ASP.NET
helptutorialquestion
2 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.
  • S Offline
    S Offline
    Shankar Balaji
    wrote on last edited by
    #1

    i have a datagrid and a usercontrol in a webpage. i pass the datagrid to the usercontrol and i modify the datasource in usercontrol . but the datasource in the webpage is not modified from the usercontrol. is this possible ? Help me Shankar C

    M 1 Reply Last reply
    0
    • S Shankar Balaji

      i have a datagrid and a usercontrol in a webpage. i pass the datagrid to the usercontrol and i modify the datasource in usercontrol . but the datasource in the webpage is not modified from the usercontrol. is this possible ? Help me Shankar C

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      Hi there, If you want to modify the datasource in the user control and also want the datagrid to reflect the changes, then you can pass the datasource object instead of the grid to the user control and rebind the updated datasource to the grid. However, IMO you'd better move the code to update the datasource of the datagrid from the user control to the web page.

      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