Skip to content

Need to support custom properties in ConvertTo-WPFGrid #27

@jdhitsolutions

Description

@jdhitsolutions
PS C:\> Get-process | sort ws | 
select -first 10 -Property ID,Name,WS,VM,NPM,Starttime,@{Name="runtime";Expression={(get-date) - $_.starttime }} | 
ConvertTo-WPFGrid
Exception calling "Substring" with "2" argument(s): "Length cannot be less than zero.
Parameter name: length"
At C:\Program Files\WindowsPowerShell\Modules\PSScriptTools\2.1.0\functions\ConvertTo-WPFGrid.ps1:164 char:9
+         $cmd = [scriptblock]::Create($myinvocation.line.substring(0,  ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentOutOfRangeException

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions