private void btnAddTerms_Click(object sender, EventArgs e)
 {
     try
     {
         frmGridMultiSelect frm = new frmGridMultiSelect(APP_ENTITIES.SALES_ORDER_TERMS_AND_CONDITIONS);
         frm.Text         = "TERMS AND CODITIONS FOR SALES ORDER (Multiselect)";
         frm.SingleSelect = false;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             this.Cursor = Cursors.WaitCursor;
             BindingList <MultiSelectListItem> selectedtTermsAndConditions = frm.SelectedItems;
             if (selectedtTermsAndConditions == null)
             {
                 return;
             }
             ServiceSalesOrder _service = new ServiceSalesOrder();
             foreach (MultiSelectListItem item in selectedtTermsAndConditions.AsEnumerable())
             {
                 TBL_MP_CRM_SalesOrder_TermsAndConditions model = new TBL_MP_CRM_SalesOrder_TermsAndConditions();
                 {
                     model.FK_SalesOrderID  = this.SelectedOrderID;
                     model.TermTitle        = item.Code;
                     model.Term_Description = item.Description.Replace(item.Code, "").Replace("\n", "");
                     model.PK_Order_TermID  = 0;
                     model.Sequence         = 0;
                     _service.AddNewOrderTermAndCondition(model);
                 }
             }
             PopulateTermsAndConditions();
             this.Cursor = Cursors.Default;
         }
     }
     catch (Exception ex)
     {
         string errMessage = ex.Message;
         if (ex.InnerException != null)
         {
             errMessage += string.Format("\n{0}", ex.InnerException.Message);
         }
         MessageBox.Show(errMessage, "ControlSalesOrderTermsAndCondition::btnAddTerms_Click", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     this.Cursor = Cursors.Default;
 }