private void LoadDataMatrix() { SAPbouiCOM.DBDataSource oDBDataSource = oForm.DataSources.DBDataSources.Item("@Z_COMI_COMGRP"); oDBDataSource.Query(); oDBDataSource.InsertRecord(oDBDataSource.Size); //MatrixExtensions.AddLineMatrixDBDataSource(Matrix0, oDBDataSource); int nProxCode = UDOExtensions.GetNextCode("Z_COMI_COMGRP", NConexion.Verifica_Conexion(Program.oCompany)); oDBDataSource.SetValue("Code", oDBDataSource.Size - 1, nProxCode.ToString()); oDBDataSource.SetValue("DocEntry", oDBDataSource.Size - 1, nProxCode.ToString()); Matrix0.LoadFromDataSource(); Matrix0.CommonSetting.SetCellEditable(oDBDataSource.Size, 3, true); MatrixExtensions.SelectMatrixRowSetFocus(ref Matrix0, "Col_2", oDBDataSource.Size); }