Input string is not in correct format.
if (e.Row.RowType == DataControlRowType.DataRow)
if (Convert.ToInt32(e.Row.Cells.Text) < 300)
e.Row.Cells.BackColor = System.Drawing.Color.Red;
Solution - make sure the string is in the correct format.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)