private void ReportListView_DoubleClick(object sender, EventArgs e)
        {
            ListViewItem selectedItem = ReportListView.Items[ReportListView.SelectedIndices[0]];

            if (DetailsForm == null || DetailsForm.IsDisposed)
            {
                DetailsForm = new PartsListDetailDisplay();
            }
            try
            {
                DetailsForm.LoadParts(selectedItem.Text);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            DetailsForm.SetForm1Instance(mainForm);
            DetailsForm.TopMost = true;
            DetailsForm.Show();
        }
        private void RequiredDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int rowindex = RequiredDataGridView.CurrentCell.RowIndex;
            // int columnindex = FindDataGridView.CurrentCell.ColumnIndex;

            String mySAPID = RequiredDataGridView.Rows[rowindex].Cells[0].Value.ToString();

            if (DetailsForm == null || DetailsForm.IsDisposed)
            {
                DetailsForm = new PartsListDetailDisplay();
            }
            try
            {
                DetailsForm.SetForm1Instance(mainForm);
                DetailsForm.LoadParts(mySAPID);
                DetailsForm.TopMost = true;
                DetailsForm.Show();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Loading Deatils Form " + ex.Message);
            }
        }