Color Code Based on Value

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Lery Lery 3 years, 11 months ago.

  • Author
    Posts
  • #6897
    Profile photo of Lery
    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
    Profile photo of Poshoholic
    Poshoholic
    Member

    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
    Profile photo of Lery
    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.