Color Code Based on Value

This topic contains 2 replies, has 2 voices, and was last updated by  Lery 4 years, 3 months ago.

  • Author
    Posts
  • #6897

    Lery
    Participant

    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.

  • #6904

    Poshoholic
    Participant

    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).

  • #6905

    Lery
    Participant

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

You must be logged in to reply to this topic.