private void HandlesdgvExecutablesCellClick(DataGridViewCellEventArgs e)
{
dgvExecutables.Rows[e.RowIndex].Selected = true;
if (e.ColumnIndex == 2)
{
string name = dgvExecutables.Rows[e.RowIndex].Cells[0].Value.ToString();
ofdFileDialog.FileName = string.Format("{0} executable", name);
ofdFileDialog.Filter = "Files|*.exe";
DialogResult result = ofdFileDialog.ShowDialog();
if (result == System.Windows.Forms.DialogResult.OK)
{
Setting setting = _bindingListExecutables.Single(s => s.Name == name);
setting.Value = ofdFileDialog.FileName;
dgvExecutables.CurrentCell = null;
}
}
}