Jump to content
Fórum Script Brasil
  • 0

Colocar mais um campo no filtro


cerri

Question

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. alguém 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

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...