Advertisement
Advertisement
| 12.05.2007 at 11:28AM PST, ID: 23004072 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: |
Private Sub dgMessages_CellPainting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellPaintingEventArgs) Handles dgMessages.CellPainting
If e.RowIndex > -1 Then
If (dgMessages.Rows(e.RowIndex).Cells("Comment1").Value.Equals("")) And (e.ColumnIndex = 4) Then
Dim buttonCell As DataGridViewButtonCell = CType(dgMessages.Rows(e.RowIndex).Cells("Comments"), DataGridViewButtonCell)
buttonCell.Visible = False ' This is where I get the ReadOnly error
End If
End If
End Sub
|