private void button6_Click(object sender, EventArgs e) { try { int selectedSchedule = int.Parse(grdMain.SelectedRows[0].Cells[0].Value.ToString()); Forms.Frm_Link_Zone frmLinkZone = new Forms.Frm_Link_Zone(selectedSchedule); frmLinkZone.ShowDialog(); } catch { Exception ex = new Exception("Please select a schedule to link form the grid below!"); HandleException(ex); } }