ProtocolPirate
Programmer
In the CellFormating method of the dgv I have the following code:
Private Sub DataGridView_Images_CellFormatting(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) Handles DataGridView_Images.CellFormatting
If e.ColumnIndex = 0 Then
e.Value = Image.FromFile("Y:\BRE0080236\AI.pdf")
End If
End Sub
There is only one row in the grid, and the code is bombing on the first call to CellFormating. Eventually I will have the image for each row loaded from a string field in the row.
I've seen this example over and over on the web, does anyone have any idea what I am doing wrong?