public void LoadProgramInfo() { if (gvwProgram.SelectedRowsCount > 0) { DataRow row = gvwProgram.GetDataRow(gvwProgram.FocusedRowHandle); if (row != null) { Scheduler.Reports.ProgamInfodlg frm = new Scheduler.Reports.ProgamInfodlg(); frm.LoadData(row["ProgramID"].ToString(), row["BrowseName"].ToString()); frm.ShowDialog(); } } }