ASP.NET, VB.NET, .NET 2.0
How can I make the text of a column in a GridView Red if the amount is negative?
I have a binded field in a grid view, and need to make it red if the amount is less than zero. How can I do this?
Here is my code:
<asp:Label ID="Label12" runat="server" Text='<%# Bind("AvailBudget") %>' Width="100px"></asp:Label>
If the AvailBudget field is negative, I want to change the font color on the label to red