Hi I have a Gridview with some boundfields. I want to dynamically change the color of text based on the datafield value for each row. Is there anyway to do this as a boundfield or do I have to turn it into a template field? Below is a snippet:
Code:
<asp:BoundField HtmlEncode="False" DataFormatString="{0:$#,##0;($#,##0)}" DataField="Remaining" SortExpression="Remaining" HeaderText="Remaining">
<ItemStyle CssClass="" HorizontalAlign="Right"></ItemStyle>