How do I format my code collectly to capture if the value is less than zero?
Code Behind -- Gridview RowDataBound
if (Convert.ToInt32(e.Row.Cells[7].Text) < 0)
{
lblOHOOFF.CssClass = "RED";
}
Error Message
System.FormatException: Input string was not in a correct format.
Data
(negative number should appear in red)
Go to the complete details ...