private void ShowDetail() { try { MessageBox.Show(os.GetById(dataGridView1.CurrentRow.Cells[0].Value.ToString()).ToString()); } catch (Exception e) { MessageBox.Show(e.Message); } }