Microsoft
Software
Hardware
Network
Question : Load Picture Box Image from DataGridView Image Column
Greetings Experts,
I have images saved in an SQL Server 2008 database. I have the database bound to a DataGridView, with one column defined as a DataGridViewImageColumn. The records are displaying properly, as well as the image column.
When the user clicks on the cell that contains the image, I am launching a "Picture Viewer" form that has a PictureBox control on it. I am not sure how to load the image in the PictureBox from the DataGridViewImageColumn. I'm guessing that I don't need to go back to the database, since the image is already loaded in the DataGridView cell.
Can you help?
Thank you in advance,
Keith
Answer : Load Picture Box Image from DataGridView Image Column
I would think that if you accessed the cell as a DataGridViewImageCell, then you could get the image from the Value property to display on a PictureBox control.
Random Solutions
Overlap CTreeCtrl and multiline CEdit in dialog
DFS not replicating certain files
WCF service error when trying to connect to SQL Request for the permission of type 'System.Data.SqlClient.Sql<wbr />ClientPerm<wbr />ission, System.Data
How can I create a macro, to delete all forms and reports in a .adp project (Microsoft Access 2000)?
Access 2007 many-to-many relationship
Move Mailboxes/Public Folders from Exchange 2003 to Exchange 2010
How secure is the Access 2007 database password?
support CEdit ctrl + c copy
convert date from visual basic to C#
Passing a string using SendMessage