I have a form called frmDSNMain
and another form called frmChainedRun
I want to access the DataGridView
present in the frmChainedRun
form from the frmDSNMain
form. I tried to call directly by the form name as frmChainedRun.gridName.Rows.Count
from the DSNMain
. But I am not able to fetch:
If frmChainRun.rbtnPredefinedModule.Checked = True Then
If frmChainRun.grdPredefined.Rows.Count > 0 Then
For Each row As DataGridViewRow In frmChainRun.grdPredefined.Rows
Dim isSelected As Boolean = Convert.ToBoolean(row.Cells(0).Value)
If isSelected Then
row.Cells(0).Value = False
End If
Next
End If
ElseIf frmChainRun.rbtnCustomModule.Checked = True Then
End If