DataGridViewImageCell
-
How could I get the file name or path of an image file displayed in a DataGridViewImageCell by clicking on the Cell...?
-
How could I get the file name or path of an image file displayed in a DataGridViewImageCell by clicking on the Cell...?
I am slightly confused by your question. If you put the image into the DataGridView, then surely you know the path/filename. If the image came from a database then it does not have a path.
Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.” Why do programmers often confuse Halloween and Christmas? - Because 31 Oct = 25 Dec. Business Myths of the Geek #4 'What you think matters.'
-
How could I get the file name or path of an image file displayed in a DataGridViewImageCell by clicking on the Cell...?
If the image came from a database, either you database stored the path and you haven't retrieved it, or it stored the image itself, in which case, there is no path since it's not stored as a file anywhere. If you built the dataset yourself from image files, you just need to add the path to the file you used to another column in the dataset.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...