Postada em 29/10/2012 18:35 hs
Esse private já esta em uso, mas preciso colocar mais um campo, hoje ela ve se o campo status é 2 ou 3, preciso colocar que seja 2,3 and SIM(campo FINAL), mas nãop estou sabendo mudar essa private. Alguem pode me ajudar?
Private Sub DGconsulta_CellFormatting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles DGconsulta.CellFormatting If Me.DGconsulta.Columns(e.ColumnIndex).Name = "STATUSDataGridViewTextBoxColumn" Then If e IsNot Nothing Then If e.Value IsNot Nothing Then Try If e.Value = "2" Then 'And DGconsulta.Columns("FINALDataGridViewTextBoxColumn").ToString = "NÃO " Then DGconsulta.Rows(e.RowIndex).DefaultCellStyle.ForeColor = Color.Orange End If If e.Value = "3" Then 'And DGconsulta.Columns("FINALDataGridViewTextBoxColumn").ToString = "NÃO " Then DGconsulta.Rows(e.RowIndex).DefaultCellStyle.ForeColor = Color.Red End If Catch ex As FormatException End Try End If End If End If End Sub
|