private void buttonShowInFolder_Click(object sender, EventArgs e) { // Find the selected row id from the datagrid if (dataGridView1.SelectedRows.Count > 0) { // Once found, go into the manager and iterate through the torrent list int listId = dataGridView1.CurrentCell.RowIndex; manager.ShowTorrentInFolder(listId); } }