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. To insert values from a gridview to textboxes in web page

To insert values from a gridview to textboxes in web page

Scheduled Pinned Locked Moved ASP.NET
csharphelp
3 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.
  • C Offline
    C Offline
    codingrocks
    wrote on last edited by
    #1

    i am doing an web page application in which i want to populate all the row data values of the colum or row clicked by user... As there is no mouseover or mouse click event for GridView in ASP .net wat can i do .... Please Help...... Thanks

    SAJAN A PILLAI C#.NET Programmer TELESOFT INDIA PVT LTD... BANGALORE

    S 1 Reply Last reply
    0
    • C codingrocks

      i am doing an web page application in which i want to populate all the row data values of the colum or row clicked by user... As there is no mouseover or mouse click event for GridView in ASP .net wat can i do .... Please Help...... Thanks

      SAJAN A PILLAI C#.NET Programmer TELESOFT INDIA PVT LTD... BANGALORE

      S Offline
      S Offline
      Sreekumar P P
      wrote on last edited by
      #2

      1. You can use DataGrid's ItemDataBound event for this. At any point you can have the exact cell value by --> e.Item.Cells[x].Text -------------------------------------------------------------- 2. You can also have mouseover or mouse-click events for a DataGrid Row. if (e.Item.ItemType == ListItemType.Item ||e.Item.ItemType == ListItemType.AlternatingItem) { if (e.Item.ItemType == ListItemType.Item) { e.Item.Attributes.Add("onmouseover", "JavaScriptFunctionName();"); e.Item.Attributes.Add("onmouseout", "JavaScriptFunctionName();"); } if (e.Item.ItemType == ListItemType.AlternatingItem) { e.Item.Attributes.Add("onmouseover", "JavaScriptFunctionName();"); e.Item.Attributes.Add("onmouseout", "JavaScriptFunctionName();"); } }

      C 1 Reply Last reply
      0
      • S Sreekumar P P

        1. You can use DataGrid's ItemDataBound event for this. At any point you can have the exact cell value by --> e.Item.Cells[x].Text -------------------------------------------------------------- 2. You can also have mouseover or mouse-click events for a DataGrid Row. if (e.Item.ItemType == ListItemType.Item ||e.Item.ItemType == ListItemType.AlternatingItem) { if (e.Item.ItemType == ListItemType.Item) { e.Item.Attributes.Add("onmouseover", "JavaScriptFunctionName();"); e.Item.Attributes.Add("onmouseout", "JavaScriptFunctionName();"); } if (e.Item.ItemType == ListItemType.AlternatingItem) { e.Item.Attributes.Add("onmouseover", "JavaScriptFunctionName();"); e.Item.Attributes.Add("onmouseout", "JavaScriptFunctionName();"); } }

        C Offline
        C Offline
        codingrocks
        wrote on last edited by
        #3

        i want to know how it can be done in gridview control

        SAJAN A PILLAI C#.NET Programmer TELESOFT INDIA PVT LTD... BANGALORE

        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