}//fin MenuEvent

        private void BorrarLinea()
        {
            Int32   sCode;
            Boolean bPaso;

            try
            {
                bPaso = false;
                ogrid = ((Grid)oForm.Items.Item("ogrid").Specific);
                odt   = ogrid.DataTable;
                for (Int32 iCont_1 = 0; iCont_1 < odt.Rows.Count; iCont_1++)
                {
                    if (((System.String)odt.GetValue("U_CardCode", iCont_1)).Length > 0)
                    {
                        if (ogrid.Rows.IsSelected(iCont_1))
                        {
                            sCode = ((System.Int32)odt.GetValue("DocEntry", iCont_1));
                            if (sCode != 0)
                            {
                                if (Funciones.DelDataSource("D", "VID_FELISTANE", "", sCode))
                                {
                                    odt.Rows.Remove(iCont_1);
                                    oForm.Mode = BoFormMode.fm_OK_MODE;
                                    FSBOApp.StatusBar.SetText("Linea eliminada correctamente", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Success);
                                    bPaso = true;
                                    break;
                                }
                            }
                            else
                            {
                                odt.Rows.Remove(iCont_1);
                                FSBOApp.StatusBar.SetText("Linea eliminada correctamente", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Success);
                                bPaso = true;
                            }
                        }
                    }
                }

                if (bPaso == false)
                {
                    FSBOApp.StatusBar.SetText("Debe seleccionar una linea", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Warning);
                }
            }
            catch (Exception g)
            {
                FSBOApp.StatusBar.SetText(g.Message, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
                OutLog("BorrarLinea: " + g.Message + " ** Trace: " + g.StackTrace);
            }
        }
        }//fin MenuEvent

        private void Borrar()
        {
            Int32   i;
            Boolean Paso = false;
            String  DocEntry;

            SAPbouiCOM.EditText oEditText;
            TFunctions          Reg;

            try
            {
                oForm.Freeze(true);
                Reg       = new TFunctions();
                Reg.SBO_f = FSBOf;
                i         = 1;
                while (i <= oMtx.RowCount)
                {
                    if (oMtx.IsRowSelected(i))
                    {
                        oEditText = (EditText)(oMtx.Columns.Item("DocEntry").Cells.Item(i).Specific);
                        DocEntry  = (System.String)(oEditText.Value).Trim();
                        if (DocEntry != "")
                        {
                            Reg.DelDataSource("D", "VID_FEPROCED", "", FSBOf.StrToInteger(DocEntry));
                            oMtx.DeleteRow(i);
                            Paso = true;
                            i    = oMtx.RowCount;
                        }
                    }
                    i++;
                }
                if (!Paso)
                {
                    FSBOApp.StatusBar.SetText("Debe seleccionar una linea", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Warning);
                }
                else
                {
                    oForm.Mode = BoFormMode.fm_UPDATE_MODE;
                }
            }
            catch (Exception x)
            {
                oForm.Freeze(false);
            }
        }
        private void BorrarCta()
        {
            Boolean Paso     = false;
            Int32   DocEntry = 0;

            try
            {
                for (Int32 i = 0; i <= oDataTable.Rows.Count - 1; i++)
                {
                    if (oGrid.Rows.IsSelected(i))
                    {
                        Paso     = true;
                        DocEntry = ((System.Int32)oDataTable.GetValue("DocEntry", i));
                        break;
                    }
                }

                if (!Paso)
                {
                    FSBOApp.StatusBar.SetText("Debe seleccionar una linea", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Warning);
                }
                else
                {
                    if (FSBOApp.MessageBox("¿Esta seguro que desea borrar cuenta?", 1, "Si", "No", "") == 1)
                    {
                        if (Funciones.DelDataSource("D", "VID_FEPLANCTA", "", DocEntry))
                        {
                            FSBOApp.StatusBar.SetText("Cuenta eliminada", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Success);
                            CargarGrilla();
                        }
                        else
                        {
                            FSBOApp.StatusBar.SetText("No fue eliminada la cuenta", BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
                        }
                    }
                }
            }
            catch (Exception x)
            {
                FSBOApp.StatusBar.SetText(x.Message + " ** Trace: " + x.StackTrace, BoMessageTime.bmt_Short, BoStatusBarMessageType.smt_Error);
                OutLog("BorrarCta: " + x.Message + " ** Trace: " + x.StackTrace);
            }
        }