smithh
New member
Private Sub BoardsDataGridView_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles BoardsDataGridView.CellClick
bnum = BoardsDataGridView.CurrentCell.FormattedValue
If txNodeType.Text = "SMINI" Then
Me.PinsDataGridView.Columns("Flashing").Visible = True
Else
************************
When I execute the next line of code I get a "No instance of object".
The bound dgvobject is on the form, just not populated.
How do I fix this problem?
*************************
Me.PinsDataGridView.Columns("Flashing").Visible = False
End If
If bnum <> "0" And e.ColumnIndex = 2 Then
Me.PinsTableAdapter.FetchPins(Me.EasyCMRIDataSet.Pins, CType(cmbNodeID.Text, Short), CType(bnum, Short))
End If
End Sub
bnum = BoardsDataGridView.CurrentCell.FormattedValue
If txNodeType.Text = "SMINI" Then
Me.PinsDataGridView.Columns("Flashing").Visible = True
Else
************************
When I execute the next line of code I get a "No instance of object".
The bound dgvobject is on the form, just not populated.
How do I fix this problem?
*************************
Me.PinsDataGridView.Columns("Flashing").Visible = False
End If
If bnum <> "0" And e.ColumnIndex = 2 Then
Me.PinsTableAdapter.FetchPins(Me.EasyCMRIDataSet.Pins, CType(cmbNodeID.Text, Short), CType(bnum, Short))
End If
End Sub