Parent used to display results from Child.
Child textbox can display first cell of selected row in richtextbox1 I have dozens of Parent/Child forms passing data successfully. Just not getting desired datagridview data to display
Code: Select all
$datagridviewResults_CellMouseClick=[System.Windows.Forms.DataGridViewCellMouseEventHandler]{
#Event Argument: $_ = [System.Windows.Forms.DataGridViewCellMouseEventArgs]
#TODO: Place custom script here
$richtextbox1.Text = $datagridviewResults.SelectedRows[0].Cells[0].Value.ToString()
}
Code: Select all
$buttonShowCfGridDataGridVi_Click={
#Note: ChildForm Button property:'DialogResult' must be set to 'OK'
if ((Show-cfGrid-DataGridView_psf) -eq 'OK')
{
$richtextboxDisplayMessageMainForm.Text = $cfGrid_DataGridView_datagridviewResults.SelectedRows[0].Cells[0].Value.ToString()
}
}
Code: Select all
$buttonShowCfGridDataGridVi_Click={
#Note: ChildForm Button property:'DialogResult' must be set to 'OK'
if ((Show-cfGrid-DataGridView_psf) -eq 'OK')
{
$richtextboxDisplayMessageMainForm.Text = $cfGrid_DataGridView_datagridviewResults
}
}
DataGridViewTextBoxCell { ColumnIndex=0, RowIndex=4 } DataGridViewTextBoxCell { ColumnIndex=1, RowIndex=4 } DataGridViewTextBoxCell { ColumnIndex=2, RowIndex=4 } DataGridViewTextBoxCell { ColumnIndex=3, RowIndex=4 } DataGridViewTextBoxCell { ColumnIndex=4, RowIndex=4 } DataGridViewTextBoxCell { ColumnIndex=5, RowIndex=4 } DataGridViewTextBoxCell { ColumnIndex=6, RowIndex=4 } DataGridViewTextBoxCell { ColumnIndex=7, RowIndex=4 } DataGridViewTextBoxCell { ColumnIndex=8, RowIndex=4 } DataGridViewTextBoxCell { ColumnIndex=9, RowIndex=4 }