Right now I am using the following code to populate my third column in DataGridView:
Bitmap img = new
Bitmap(@"C:\Project\Images\Image1.jpg");
DataGridView [2, 0].Value = img; //2,0 is 1st row, 3rd column
Bitmap img2 = new
Bitmap(@"C:\Project\Images\Image2.jpg");
DataGridView [2, 1].Value = img2; //2,1 is 2nd row, 3rd column
The third column is correctly populated with the image, but I have this code duplicated 26 more times. For simplicity sake I just want to know if their is a simpler way of doing this, such as making an array or inserting the images directly to my database. I apologize if this is a novice question, by I am relatively new to C#.
Thanks!