I am not too sure if this is easy or not but I have a datagrid with a return date field. All I want to happen is if any of the dates in the grid are before the current date Datetime.Now then turn a picturebox to visible. I have had a little play around but cannot seem to crack it. Any help on this would be great
Dim dr As New DataGridViewRow
For i As Integer = 0 To dgLinenStock.Rows.Count - 1
dr = dgLinenStock.Rows(i)
Next
If (dr.Cells("ReturnDate").Value = Nothing) And (dr.Cells("ReturnDate").Value << DateTime.Now) Then
pbRed.Visible = True
End If