Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Private Sub dgView_CellFormatting(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles dgView.CellFormatting
  2.        
  3. If e.ColumnIndex = 3 Then
  4.             Dim curRow As DataGridViewRow = dgView.Rows(e.RowIndex)
  5.             If curRow.Cells.Item(3).Value = "0" Then
  6.                 e.Value = dgImages.Images(0)
  7.             ElseIf curRow.Cells.Item(3).Value = "1" Then
  8.                 e.Value = dgImages.Images(1)
  9.             End If
  10. End If
  11.  
  12. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement