EDN Admin
Well-known member
<p align=left><font face=Arial size=2></font>
Hi dear my friends
SOS! please help me ASAP!
I wanna insert an image from a specific folder into a datagridview cell (NOT all the cells of a column)
by the way I tried this code ,but it displays an image in all the cells of a column:
<p align=left>
<p align=left> Icon treeIcon = new Icon(this.GetType(), "tree.ico");
DataGridViewImageColumn iconColumn = new DataGridViewImageColumn();
iconColumn.<font style="background-color:#335ea8" color="#ffffff Image</font> = treeIcon.ToBitmap();
iconColumn.Name = "Tree";
iconColumn.HeaderText = "Nice tree";
dataGridView1.Columns.Insert(2, iconColumn);
<p align=left>Tanks for your answers
View the full article
Hi dear my friends
SOS! please help me ASAP!
I wanna insert an image from a specific folder into a datagridview cell (NOT all the cells of a column)
by the way I tried this code ,but it displays an image in all the cells of a column:
<p align=left>
<p align=left> Icon treeIcon = new Icon(this.GetType(), "tree.ico");
DataGridViewImageColumn iconColumn = new DataGridViewImageColumn();
iconColumn.<font style="background-color:#335ea8" color="#ffffff Image</font> = treeIcon.ToBitmap();
iconColumn.Name = "Tree";
iconColumn.HeaderText = "Nice tree";
dataGridView1.Columns.Insert(2, iconColumn);
<p align=left>Tanks for your answers
View the full article