DataGridViewImageColumn iconColumn = new DataGridViewImageColumn(); dataGridView2.Columns.Insert(0, iconColumn); dataGridView2.AutoSizeRowsMode = DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders; dataGridView2.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.DisplayedCellsExceptHeader; dataGridView2.Rows[0].Cells[0].Value = (Image)Bitmap.FromFile(@"C:\Documents and Settings\mbazinet\My Documents\Mathieu\Plans\Plans\Images\porteA_35.jpg"); dataGridView2.Rows.Add(); dataGridView2.Rows[1].Cells[0].Value = (Image)Bitmap.FromFile(@"C:\Documents and Settings\mbazinet\My Documents\Mathieu\Plans\Plans\Images\porteB_35.jpg"); dataGridView2.Rows.Add(); dataGridView2.Rows[2].Cells[0].Value = (Image)Bitmap.FromFile(@"C:\Documents and Settings\mbazinet\My Documents\Mathieu\Plans\Plans\Images\porteC_35.jpg"); dataGridView2.AutoResizeRows(DataGridViewAutoSizeRowsMode.DisplayedCells);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)