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
URGENT: Need help parsing string for several numeric values SQL database columns
Select Row Number
Access 97 - Totaling up numbers in a group footer
need to convert the following from asp to asp.net
C# Class
How to create a copy of table from one database to another(need schema as well)+sql server 2005
uninstall this application when it falls out of the scope of managment
Using COMAdmin to create a COM+ application running under an identity of "Network Service"
Using IF in SQL SELECT
Crosstab Query with Decimal column Headers for MS Graph Datasheet