switch (status) { case warning: // set row text color to yellow break; case error: // set row text color to red break; case active: // set row text color to green break; default: // do nothing ... leave color as-is break; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)