I'm taking into account that you are using DataGrid and not the GridView of .net
you can use OnItemDataBound event of the datagrid.
use something like this in event
if(ControlValue < 3)
{
TableCell Cell = e.Row.Cells[0];
Cell.BackColor = Color.Black;
}
or use the "e" event argument to find the cell instead of table cell