Hi
I have a datGridView on my from which gets the data from my dataset
i have changed the photo field to a pictureBox
but i do not know how to disolay the photo
It will be a hyperlink like this:http://www.mysite.com/ + photoField
in which Event of datagrid should i get the info?
i need code pls
Loading
Posted Sep 29, 2013, 4:05 AM
If may not be 100% efficient, but you will get the desired output.
Please modify it as per your wish.
keyvanPosted Sep 29, 2013, 9:54 AM
Private Sub Auto_AutosBindingSource_PositionChanged(sender As Object, e As System.EventArgs) Handles Auto_AutosBindingSource.PositionChanged
If Me.Auto_AutosBindingSource.Position > -1 Then
For Each row3 As DataRowView In Auto_autoPhotosBindingSource.List
Dim row2 As AutosDataSet.auto_autoPhotosRow
row2 = CType(CType(Me.Auto_autoPhotosBindingSource.Current, DataRowView).Row, AutosDataSet.auto_autoPhotosRow)
' Dim ImageURL As String = "http://www.site.com/auto/pictures/autoImages/" & row2.Folder & "/" & common.getPicThumb(row2.Photo.ToString())
' Me.PhotoPictureBox.ImageLocation = ImageURL
Next
End If
End Sub
keyvanPosted Sep 27, 2013, 9:25 AM
Posted Sep 27, 2013, 7:58 AM