- ERROR: The property 'Visible' cannot be found on this object. Verify that the property exists and can be set.
- MainForm.psf (40, 2): ERROR: At Line: 40 char: 2
- ERROR: + $datagridviewResults.Columns[5].Visible = $false;
- ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- ERROR: + CategoryInfo : InvalidOperation: (:) [], RuntimeException
- ERROR: + FullyQualifiedErrorId : PropertyNotFound
- ERROR:
the question is a general.
If I create a project in PSS in the mainform.psf the order is as follow:
<MainForm_Load>
<region Control Helper Function>
<other implemented stuff>
Now I added a Datagridview, the columns are defined.
In the MainForm_Load I create a datatable and set the table as source at the DGV.
$datagridviewResults.DataSource = $global:table
If I want to define the Properties I can't do this in the MainForm_Load.
example: $datagridviewResults.Columns[5].Visible = $false;
If I add this there I get an error:
Any hints?
regards