01.
private
void
dataGridView1_CellContentClick(
02.
object
sender, DataGridViewCellEventArgs e)
03.
{
04.
if
(e.ColumnIndex == 0)
05.
{
06.
SelectFile(e.RowIndex);
07.
}
08.
}
09.
10.
private
void
SelectFile(
int
rowIndex)
11.
{
12.
if
(openFileDialog.ShowDialog() == DialogResult.OK)
13.
{
14.
dataGridView1.Rows[rowIndex].Cells[1].Value =
15.
openFileDialog.FileName;
16.
}
17.
}