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. ON CLICK EVENT IN Data grid

ON CLICK EVENT IN Data grid

Scheduled Pinned Locked Moved ASP.NET
css
3 Posts 3 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.
  • P Offline
    P Offline
    ps srinivasan
    wrote on last edited by
    #1

    I have a requirement: If i click on a datagrid(cell),the data's corresponding to that particular data grid has to be displayed in a text box('s). I mean, if i click a roll number, corresponding data's like marks, class etc has to be displayed in a text box. Please suggest me a solution ASAP.

    C R 2 Replies Last reply
    0
    • P ps srinivasan

      I have a requirement: If i click on a datagrid(cell),the data's corresponding to that particular data grid has to be displayed in a text box('s). I mean, if i click a roll number, corresponding data's like marks, class etc has to be displayed in a text box. Please suggest me a solution ASAP.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You need to insert javascript so that the data is in a div, and it's click event calls code that transfers it's value into the textbox.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      1 Reply Last reply
      0
      • P ps srinivasan

        I have a requirement: If i click on a datagrid(cell),the data's corresponding to that particular data grid has to be displayed in a text box('s). I mean, if i click a roll number, corresponding data's like marks, class etc has to be displayed in a text box. Please suggest me a solution ASAP.

        R Offline
        R Offline
        Ravi_21
        wrote on last edited by
        #3

        datagrid have the propery e.item(0).text=textbox1.text write it hope it works

        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