Images in datagridview
#2

Did you make the column on that datagridview  into "DataGridViewImageColumn": (when you create a column create the column with that type).

Bitmap bmp = new Bitmap("image.bmp");
dataGridView1.Rows.Add("String", (Image)bmp, - 1, "None", -1);

Or you can Change the cell type to "DataGridViewImageCell"

DataGridViewImageCell cell = new DataGridViewImageCell();
cell.Value = (Image )bmp;
dataGridView2.Rows[RowIndex].Cells["MyColumn"] = cell;



Messages In This Thread
[No subject] - by soryjero - 08-16-2013, 12:11 PM
[No subject] - by someone - 08-16-2013, 03:55 PM
[No subject] - by soryjero - 08-16-2013, 11:56 PM
[No subject] - by Johnny5 - 08-17-2013, 10:02 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)