我要实现用DataGridView显示用户从OpenFileDialogue选中的图片缩略图和图片名称
DataGridView具体列如下
【图片缩略图】【图片名称】【删除按钮】
以下是代码
OpenFileDialog openFileDialogue = new OpenFileDialog();
openFileDialogue.Filter = "JPG(*.jpg)|*.jpg|GIF(*.gif)|*.gif|PNG(*.png)|*.png|BMP(*.bmp)|*.bmp";
openFileDialogue.FilterIndex = 1;
openFileDialogue.RestoreDirectory = true;
openFileDialogue.Multiselect = true;
if (openFileDialogue.ShowDialog() == DialogResult.OK)
{
foreach (string s in openFileDialogue.FileNames)
{
string filename=Path.GetFileName(s);
MessageBox.Show(filename);
//下面用DataGridView绑定数据
//上面的代码没问题 就是不知道这块怎么绑定了
}