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. Datagrid's runtime row coloring

Datagrid's runtime row coloring

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

    Hi, I am working on web form , my code behind is C#. Problem is that I want to paint my datagrid's row at runtime..Whenever I click on a template column that particular row should be painted... So can anybody help me to paint a particular row onclick of this columns particular cell at runtime. The template column was designed as follows..... asp:TemplateColumn HeaderText="PONumber" ItemTemplate a id="Number" name="Number" style="COLOR: blue; TEXT-DECORATION: underline" onmouseover="this.style.cursor='hand'" onclick="Openwindow('<%#DataBinder.Eval (Container.DataItem,"Id")%>');"> <%#DataBinder.Eval(Container.DataItem,"Number")%> Thanks...

    D 1 Reply Last reply
    0
    • H HowRU

      Hi, I am working on web form , my code behind is C#. Problem is that I want to paint my datagrid's row at runtime..Whenever I click on a template column that particular row should be painted... So can anybody help me to paint a particular row onclick of this columns particular cell at runtime. The template column was designed as follows..... asp:TemplateColumn HeaderText="PONumber" ItemTemplate a id="Number" name="Number" style="COLOR: blue; TEXT-DECORATION: underline" onmouseover="this.style.cursor='hand'" onclick="Openwindow('<%#DataBinder.Eval (Container.DataItem,"Id")%>');"> <%#DataBinder.Eval(Container.DataItem,"Number")%> Thanks...

      D Offline
      D Offline
      dashingdracula
      wrote on last edited by
      #2

      CommandName="Select" CausesValidation="false" ID="Linkbutton1" NAME="Linkbutton1">

      H 1 Reply Last reply
      0
      • D dashingdracula

        CommandName="Select" CausesValidation="false" ID="Linkbutton1" NAME="Linkbutton1">

        H Offline
        H Offline
        HowRU
        wrote on last edited by
        #3

        Hi, Ya correct it working fine....but the main thing on this page is to pass that EmpId to the second page for that purpose onclick of that column I am calling one function... OpenfrmPOnumWindow('<%#DataBinder.Eval(Container.DataItem,"EmpId")%>')" so whenever i am adding this on the asp:Linkbutton's onclick it is giving me the parsing error as newline in compilation...so can you plz add this type of function to your code & run it again.... 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