private void incarcaRand(DataGridViewRow pRand, BListaPreturiStandard pElem) { pRand.Tag = pElem; DataGridViewPersonalizat.InitCelulaEditare(pRand, this.lEcranInModificare); pRand.Cells[EnumColoaneDGV.colDenumire.ToString()].Value = pElem.Denumire; pRand.Cells[EnumColoaneDGV.colPrescurtare.ToString()].Value = pElem.DenumirePrescurtata; pRand.Cells[EnumColoaneDGV.colCod.ToString()].Value = pElem.CodIntern; if (pElem.IdCategorie != 0) { BCategorii categorie = BCategorii.getCategorieById(pElem.IdCategorie, null); if (categorie.IdCategorie != 0) { pRand.Cells[EnumColoaneDGV.colCategorie.ToString()].Value = BCategorii.getCategorieById(categorie.IdCategorie, null).Denumire; pRand.Cells[EnumColoaneDGV.colSubcategorie.ToString()].Value = categorie.Denumire; } else { pRand.Cells[EnumColoaneDGV.colCategorie.ToString()].Value = categorie.Denumire; pRand.Cells[EnumColoaneDGV.colSubcategorie.ToString()].Value = string.Empty; } } else { pRand.Cells[EnumColoaneDGV.colCategorie.ToString()].Value = string.Empty; pRand.Cells[EnumColoaneDGV.colSubcategorie.ToString()].Value = string.Empty; } pRand.Cells[EnumColoaneDGV.colTermenMediu.ToString()].Value = pElem.TermenMediuZile; pRand.Cells[EnumColoaneDGV.colValoareRon.ToString()].Value = pElem.GetEtichetaRon(); pRand.Cells[EnumColoaneDGV.colValoareEuro.ToString()].Value = pElem.GetEtichetaEuro(); DataGridViewPersonalizat.InitCelulaStergere(pRand); }