private void ShowOriginalTransactions(int MFTransId)
        {
            bool isAvailable = true;

            if (ddlPortfolios.SelectedValue.ToString() != "NA")
            {
                //int portfolioId = int.Parse(ddlPortfolios.SelectedValue.ToString());

                List <MFTransactionVo> mfOriginalTransactionVoList = new List <MFTransactionVo>();
                CustomerTransactionBo  customerTransactionBo       = new CustomerTransactionBo();

                DataTable dtOriginalTransactions = new DataTable();

                DataRow drOriginalTransaction;



                dtOriginalTransactions.Columns.Add("MFTransId");
                dtOriginalTransactions.Columns.Add("Scheme");
                dtOriginalTransactions.Columns.Add("Folio");
                dtOriginalTransactions.Columns.Add("Date");
                dtOriginalTransactions.Columns.Add("Units");
                dtOriginalTransactions.Columns.Add("Price");
                dtOriginalTransactions.Columns.Add("Amount");
                dtOriginalTransactions.Columns.Add("TransactioType");


                mfOriginalTransactionVoList = customerTransactionBo.GetMFOriginalTransactions(MFTransId);

                if (mfOriginalTransactionVoList != null)
                {
                    for (int i = 0; i < mfOriginalTransactionVoList.Count; i++)
                    {
                        drOriginalTransaction    = dtOriginalTransactions.NewRow();
                        drOriginalTransaction[0] = mfOriginalTransactionVoList[i].TransactionId;
                        drOriginalTransaction[1] = mfOriginalTransactionVoList[i].SchemePlan;
                        drOriginalTransaction[2] = mfOriginalTransactionVoList[i].Folio;
                        drOriginalTransaction[3] = mfOriginalTransactionVoList[i].TransactionDate.ToShortDateString();
                        drOriginalTransaction[4] = mfOriginalTransactionVoList[i].Units.ToString("f2");
                        drOriginalTransaction[5] = mfOriginalTransactionVoList[i].Price.ToString("f2");
                        drOriginalTransaction[6] = mfOriginalTransactionVoList[i].Amount.ToString("f2");
                        drOriginalTransaction[7] = mfOriginalTransactionVoList[i].TransactionType;
                        dtOriginalTransactions.Rows.Add(drOriginalTransaction);
                    }
                    gvOriginalTransactions.DataSource = dtOriginalTransactions;

                    gvOriginalTransactions.DataBind();
                    ((RadioButton)gvOriginalTransactions.Rows[0].Cells[0].FindControl("rdOriginalId")).Checked = true;
                    gvOriginalTransactions.Visible  = true;
                    lblOriginalTransactions.Visible = true;
                    pnlOriginalTransactions.Visible = true;
                    lblOriginalTransactions.Text    = "Similar Original Transactions. Select Matching Transaction and Click on the button 'Map Transaction below'";
                    tdOriginalTransactions.Visible  = true;
                }
                else
                {
                    lblOriginalTransactions.Visible = true;
                    lblOriginalTransactions.Text    = "No Similar Original Transactions Available";
                    pnlOriginalTransactions.Visible = false;
                    tdOriginalTransactions.Visible  = false;
                    isAvailable = false;
                }
            }
            else
            {
                gvOriginalTransactions.Visible = false;


                lblOriginalTransactions.Visible = false;

                pnlOriginalTransactions.Visible = false;
                tdOriginalTransactions.Visible  = false;
                isAvailable = false;
            }
            if (isAvailable)
            {
                btnMap.Visible = true;
            }
            else
            {
                btnMap.Visible = false;
            }
        }