E
Esperanza
Hello .net expert,
I would like to change the color a a column "Name" base on the value of
another column "tel" . Is it possible ???
Thanks in advance !!
Esperanza
<ItemTemplate>
<b>
<%#CustomColorRow(DataBinder.Eval(Container.DataItem,"XTEL"))%>
</b>
</ItemTemplate>
'=============================================
public string CustomColorRow(object indiceAppel)
{
if (indiceAppel.Equals("5147426101"))
{
return "<span style=\"background-color:blue;\">" +indiceAppel +
"</span>";
}
else
{ return "<span style=\"background-color:white;\">" +indiceAppel +
"</span>";
}
}
I would like to change the color a a column "Name" base on the value of
another column "tel" . Is it possible ???
Thanks in advance !!
Esperanza
<ItemTemplate>
<b>
<%#CustomColorRow(DataBinder.Eval(Container.DataItem,"XTEL"))%>
</b>
</ItemTemplate>
'=============================================
public string CustomColorRow(object indiceAppel)
{
if (indiceAppel.Equals("5147426101"))
{
return "<span style=\"background-color:blue;\">" +indiceAppel +
"</span>";
}
else
{ return "<span style=\"background-color:white;\">" +indiceAppel +
"</span>";
}
}