private void ReportListingGrid_DoubleClickRow(object sender, Infragistics.Win.UltraWinGrid.DoubleClickRowEventArgs e) { try { if (e.Row.Band.Index > 0 && e.Row.Index > -1) { if (e.Row.Index < this.form9070ReportListingData.F9070GetReportListing.Rows.Count) { this.Cursor = Cursors.WaitCursor; int reportNumberId; int.TryParse(e.Row.Cells[this.form9070ReportListingData.F9070GetReportListing.ReportIDColumn.ColumnName].Value.ToString(), out reportNumberId); TerraScanCommon.ShowReportPreview(reportNumberId, TerraScan.Common.Reports.Report.ReportType.Preview , e.Row.Cells[this.form9070ReportListingData.F9070GetReportListing.ReportFileColumn.ColumnName].Value.ToString() , e.Row.Cells[this.form9070ReportListingData.F9070GetReportListing.DescriptionColumn.ColumnName].Value.ToString()); //// Calling the Common Function for Report // TerraScanCommon.ShowReport(reportNumberId, TerraScan.Common.Reports.Report.ReportType.Preview); } } } catch (Exception ex) { ExceptionManager.ManageException(ex, ExceptionManager.ActionType.CloseCurrentForm, this.ParentForm); } finally { this.Cursor = Cursors.Default; } }