How to Save/Get images from DataGridViewImageColumn

I have a simple datagridview with 3 columns.
column1 is a DataGridViewImageColumn
column2 is a TextBoxColumn
column3 is a TextBoxColumn

I'm trying to save all the cells with the code below.
The problem is that I don't understand how I could save/get the images from the imagecolumn ?
Any easy suggestions ?
foreach (DataGridViewRow xx in dataGridView1.Rows)
            {
 
                string col2 = xx.Cells["Column2"].Value.ToString();
                string col3 = xx.Cells["Column3"].Value.ToString();
            }

Open in new window

LVL 1
SmykenAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
chrisbrayConnect With a Mentor Commented:
I am not able to test this at the moment, but you should be able to simply go:

Image image = (Image)xx.Cells["Column2"].Value;

Chris Bray


0
All Courses

From novice to tech pro — start learning today.