Re: Formatting cells of a DataGridView best place for the code?
Posted: Wed Aug 07, 2019 11:40 am
Very nice. You don't need some of the code.
This does what you are trying to do:
If ($this.Columns[$_.ColumnIndex].Name -eq 'ARTIST') {
"-eq" is case insensitive and behaves better then the object method. Be careful with that when using C# code for an example. Much of what we can do easily in PowerShell cannot be done in C#.
This does what you are trying to do:
If ($this.Columns[$_.ColumnIndex].Name -eq 'ARTIST') {
"-eq" is case insensitive and behaves better then the object method. Be careful with that when using C# code for an example. Much of what we can do easily in PowerShell cannot be done in C#.