Datagrid's runtime row coloring
-
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...
-
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...
CommandName="Select" CausesValidation="false" ID="Linkbutton1" NAME="Linkbutton1">
-
CommandName="Select" CausesValidation="false" ID="Linkbutton1" NAME="Linkbutton1">
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...