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. Change gridview cell back color without postback

Change gridview cell back color without postback

Scheduled Pinned Locked Moved ASP.NET
help
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.
  • M Offline
    M Offline
    Michele56
    wrote on last edited by
    #1

    Hi, my need is very simple, but I'm not able to discover a solution. My gridview has a fixed number of rows and columns and I'd like to change a cell background color when the user click on the cell, without postback. I appreciate any help. Thanks.

    Michele

    V 1 Reply Last reply
    0
    • M Michele56

      Hi, my need is very simple, but I'm not able to discover a solution. My gridview has a fixed number of rows and columns and I'd like to change a cell background color when the user click on the cell, without postback. I appreciate any help. Thanks.

      Michele

      V Offline
      V Offline
      Vani Kulkarni
      wrote on last edited by
      #2

      Hello Michele, You can use javascript to serve your purpose. Take a look at solution in following link: how-to-change-the-gridview-row-colors-in-onclick-event-in-javascript[^] Change the GridView row color on click without postback[^]

      Thanks & Regards, Vani Kulkarni

      M 1 Reply Last reply
      0
      • V Vani Kulkarni

        Hello Michele, You can use javascript to serve your purpose. Take a look at solution in following link: how-to-change-the-gridview-row-colors-in-onclick-event-in-javascript[^] Change the GridView row color on click without postback[^]

        Thanks & Regards, Vani Kulkarni

        M Offline
        M Offline
        Michele56
        wrote on last edited by
        #3

        Many thanks Vani, I appreciate your help but i need to change only the cell backcolor and not the complete row backcolor. Michele

        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