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. GridView - Urgent

GridView - Urgent

Scheduled Pinned Locked Moved ASP.NET
helpquestion
5 Posts 4 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.
  • K Offline
    K Offline
    Kavita
    wrote on last edited by
    #1

    I want to get the gridview's specified column highlighted onmouseover as well as the row. Can somebody help ? Kavita

    P C S 3 Replies Last reply
    0
    • K Kavita

      I want to get the gridview's specified column highlighted onmouseover as well as the row. Can somebody help ? Kavita

      P Offline
      P Offline
      Paul McGann
      wrote on last edited by
      #2

      Read this post on the asp Forum: http://forums.asp.net/p/1074580/1576884.aspx#1576884

      1 Reply Last reply
      0
      • K Kavita

        I want to get the gridview's specified column highlighted onmouseover as well as the row. Can somebody help ? Kavita

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

        In the rowCreated event, You can add and attribute to that cell. Example: e.Row.Cells(8).Attributes.Add("onMouseOver", "alert('do something')")

        K 1 Reply Last reply
        0
        • C cisco2103

          In the rowCreated event, You can add and attribute to that cell. Example: e.Row.Cells(8).Attributes.Add("onMouseOver", "alert('do something')")

          K Offline
          K Offline
          Kavita
          wrote on last edited by
          #4

          Hi, Thanks for the reply. But this does not solve the problem. It will highlight only one cell, I want to highlight the whole column on mouseover. For Eg: If I take the mouse on one cell of 2nd column then the complete column 2 should get highlighted and the corresponding row too. Kavita

          1 Reply Last reply
          0
          • K Kavita

            I want to get the gridview's specified column highlighted onmouseover as well as the row. Can somebody help ? Kavita

            S Offline
            S Offline
            sukkureddy
            wrote on last edited by
            #5

            Use Onrowdatabound event and write the code inside e.Row.Attributes["onmouseover"] = "this.style.cursor='hand';this.style.textDecoration='underline';";

            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