Help Color for New-UDDataGrid last row

Hi

I am trying to change the color of the last row of a DataGrid.

I have tried the following

  MuiDataGrid = @{
    root = @{
        autoHeight = @{
            row = @{
                lastVisible = @{
                    cell = @{
                        'border-color' = '#fff'
                    }

                }
            }
        }
            'color' = '#fff'
            'border-color' = '#fff'
            withBorderColor=@{
                'border-color' = '#fff'
                'border-bottom-color' = '#fff'
            }

            
    }
    cell = @{ 
            'border-color' = '#fff'
            'border-bottom-color' = '#fff'
    
    }
    autoHeight = @{
    'border-color' = '#fff'
    }
   
    lastVisible = @{
        'border-color' = '#fff'
        'border-bottom-color' = '#fff'
       }
   
    columnHeaders = @{
            'background-color' = 'black'
            'border-bottom-color'    = '#fff'
    }
   columnSeparator = @{
        'color' = '#fff'
    } 
    footerContainer = @{
            'border-color' = '#fff'
            'border-bottom' = '1px solid #fff'
            'border-top' = '1px solid #fff'
    }
Product: PowerShell Universal
Version: 3.10.2

Hello :slight_smile:

Try adding this:

withBorderColor = @{
‘border-color’ = ‘#fff
}

Thanks os much it solved my problem

  MuiDataGrid = @{
    root = @{
        
            'color' = '#fff'
            'border-color' = '#fff'
    }
    cell = @{ 
            'border-color' = '#fff'
            'border-bottom-color' = '#fff'
    
    }
    autoHeight = @{
    'border-color' = '#fff'
    }
   
    lastVisible = @{
        'border-color' = '#fff'
        'border-bottom-color' = '#fff'
       }
   
    columnHeaders = @{
            'background-color' = 'black'
            'border-bottom-color'    = '#fff'
    }
    columnSeparator = @{
        'color' = '#fff'
    } 
    footerContainer = @{
            'border-color' = '#fff'
            'border-bottom' = '1px solid #fff'
            'border-top' = '1px solid #fff'
    }
    toolbarContainer = @{
        'background-color' = 'black'
       } 
    withBorderColor = @{
        ‘border-color’ = ‘#fff’
    }
1 Like