Author Posts

May 23, 2013 at 11:47 am

Is it possible to color code rows based on the value of a column in out-gridview? I saw nothing in the help. I would like to color code rows black, red, or blue based on the column I have called severity. The column Severity has 1,2,3. I would like to make 1 black, 2 is blue, 3 is red, etc.

May 23, 2013 at 12:23 pm

Out-GridView does not support that, nor does the PowerShell formatting engine by default (although you can make it work inside the native PowerShell console with some proxy functions).

May 23, 2013 at 12:26 pm

Thanks Poshoholic. That is what I thought. I figured I should make sure.