leonardo-m
11/13/2018 - 8:51 PM

GET VAlues of DataGrid

Obtener los valores de un grid de SAP

    Grid Grid;
    EditText txtCodFamilia;
    txtCodFamilia = (EditText)pForma.Items.Item("txtFamCod").Specific;

    Grid = (Grid)pForma.Items.Item("Max4").Specific;
    DataTable dataTable = Grid.DataTable;

    CellPosition Ubicacion_Actual = Grid.GetCellFocus();

    pForma.Freeze(true);
   

    string CodSubFam = dataTable.GetValue(EColCodArt.CodSubFam, pVal.Row).ToString();
    string  NombreSubFAm = dataTable.GetValue(EColCodArt.NomSubFam, pVal.Row).ToString();
    string SubDivsion = dataTable.GetValue(EColCodArt.SubDivision, pVal.Row).ToString();
    string editable = dataTable.GetValue(EColCodArt.Editable, pVal.Row).ToString();


    if (CodSubFam != "")
    {
        if (SubDivsion == "")
        {
           Globales.LlamarCustomCFL(CodSubFam,pVal.Row ,"LDCODART",EColCodArt.CodSubFam.ToString(),EColCodArt.SubDivision.ToString(),"Max4");
            pForma.Freeze(false);
            return TConstantes.SBOLDObjeto.RetornoCancel;
        }
        else
        {

        }
    }