I'm just assuming here but you could do something like this
Use javascript to perform the actual blinking.
Code:
window.onload = startBlink;
function doBlink() {
// Blink, Blink, Blink...
var blink = document.all.tags("BLINK")
for (var i=0; i < blink.length; i++)
blink[i].style.color = blink[i].style.color == "" ? "white" : ""
}
function startBlink() {
// Make sure it is IE4
if (document.all)
setInterval("doBlink()",1000)
}
then just add <BLINK></BLINK> tags around the Data you want to blink
So in your gridview you could do something like
Code:
<asp:TemplateField HeaderText = "First Data Column">
<ItemTemplate>
<%= iif(cint(Eval("Time")) < 120,"<BLINK>" & Eval("FirstDataColumn").ToString & "</BLINK>", Eval("FirstDataColumn").ToString %>
</ItemTemplate>
</asp:TemplateField>
<asp:TemplateField HeaderText = "Second Data Column">
<ItemTemplate>
<%= iif(cint(Eval("Time")) < 120,"<BLINK>" & Eval("SecondDataColumn").ToString & "</BLINK>", Eval("SecondDataColumn").ToString %>
</ItemTemplate>
</asp:TemplateField>
There may be better ways to do this but i'm just doing an inline if to see if the time is less than 120 if it is then i add the BLINK tags around the text value and if it's not then i just add the text value. Now this won't work if you need to edit the gridview but it's just readonly then I think it might work for what you need?