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 hightlight a row in datagrid

how to hightlight a row in datagrid

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

    hi all, anyone help me? How to hightlight a row in datagrid server control when clicking each of row ? I solved that: when clicking on a row, it is hightlight but when user clicks another row, i dont known how to restore the original color for rows that has been changed thanks in advance :zzz:

    T 1 Reply Last reply
    0
    • E enjoycrack

      hi all, anyone help me? How to hightlight a row in datagrid server control when clicking each of row ? I solved that: when clicking on a row, it is hightlight but when user clicks another row, i dont known how to restore the original color for rows that has been changed thanks in advance :zzz:

      T Offline
      T Offline
      Tim Kohler
      wrote on last edited by
      #2

      You have to define a selecteditemstyle for the datagrid and put in a select command button:

      E 1 Reply Last reply
      0
      • T Tim Kohler

        You have to define a selecteditemstyle for the datagrid and put in a select command button:

        E Offline
        E Offline
        enjoycrack
        wrote on last edited by
        #3

        Do you have another way if I do not put a select command button? thanks

        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