Color Code Based on Value

Welcome Forums General PowerShell Q&A Color Code Based on Value

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
5 years, 9 months ago.

  • Author
    Posts
  • #6897

    Participant
    Points: 2
    Rank: Member

    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

    Participant
    Points: 1
    Rank: 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

    Participant
    Points: 2
    Rank: Member

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

The topic ‘Color Code Based on Value’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort