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. changing color of edit row in gridview

changing color of edit row in gridview

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelp
2 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
    mohd imran abdul aziz
    wrote on last edited by
    #1

    Hi, i am using C# asp.net2.0 i want to know two things 1. is it possible to change the color of editing row of gridview that is when i click edit button(template) that row's color change 2. Is it possible to have some diffenrnt color of last inserted row as i have interface in above frame and i select the record and add to gridview, Please help Thank you

    regards imran khan

    D 1 Reply Last reply
    0
    • M mohd imran abdul aziz

      Hi, i am using C# asp.net2.0 i want to know two things 1. is it possible to change the color of editing row of gridview that is when i click edit button(template) that row's color change 2. Is it possible to have some diffenrnt color of last inserted row as i have interface in above frame and i select the record and add to gridview, Please help Thank you

      regards imran khan

      D Offline
      D Offline
      dilipv 0
      wrote on last edited by
      #2

      hi mohd imran abdul aziz, You can directly add Back color to selected row of GridView as follows. <asp:GridView SelectedRowStyle-BackColor ="Aqua" ID="Grid" runat="server" ></asp:GridView> For 2nd problem you need to write code in the RowCreated Event of Gridview as follows.. protected void Grid_RowCreated(object sender, GridViewRowEventArgs e) { e.Row.BackColor = "Blue"; } Hope this will help you. Thanks & Regards Dilipv

      Dilip Kumar Vishwakarma Programmer .Net Consulting

      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