Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- `Private Sub dgCorpResults_CurrentCellChanged(ByVal sender As Object, ByVal e As
- System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles dgvMatrix.CellFormatting
- Try
- For Each cell As DataGridViewCell In dgvMatrix.Rows(e.RowIndex).Cells
- cell.Style.BackColor = Color.Red
- Next
- Catch ex As Exception
- End Try
- If value=0 Then
- cell.Style.BackColor = Color.Red
- Else
- cell.Style.BackColor = Color.LightGreen
- End If
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement