H
Henry Jones
In ASP.NET 1.1, I have a Datagrid and I have the following column:
<asp:TemplateColumn HeaderText="ID" ItemStyle-HorizontalAlign="Center"
ItemStyle-BackColor="0066cc">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"title_id") %>
</ItemTemplate>
</asp:TemplateColumn>
Would it be possible to call the following function:
' ********************************************************************
Function Highlight(ByVal ytdSales As Integer) As String
If ytdSales > 10000 Then
Return "#0066cc"
Else
Return "#0033aa"
End If
End Function
' ********************************************************************
and replace the value on the TemplateColumn Header for the backcolor?
How could I do this in code? I don't understand.
Thanks,
Henry
<asp:TemplateColumn HeaderText="ID" ItemStyle-HorizontalAlign="Center"
ItemStyle-BackColor="0066cc">
<ItemTemplate>
<%# DataBinder.Eval(Container.DataItem,"title_id") %>
</ItemTemplate>
</asp:TemplateColumn>
Would it be possible to call the following function:
' ********************************************************************
Function Highlight(ByVal ytdSales As Integer) As String
If ytdSales > 10000 Then
Return "#0066cc"
Else
Return "#0033aa"
End If
End Function
' ********************************************************************
and replace the value on the TemplateColumn Header for the backcolor?
How could I do this in code? I don't understand.
Thanks,
Henry