Beispiel #1
0
        private void PopulateData()
        {
            List <MDrugsDTO> lstdrugs = new List <MDrugsDTO>();

            lstdrugs = objITransactionBusiness.GetMDrugs();
            if (lstdrugs != null && lstdrugs.Count > 0)
            {
                ListView1.DataSource = lstdrugs;
                ListView1.DataBind();
            }
            else
            {
                ListView1.Items.Clear();
                ListView1.DataSource = null;
                ListView1.DataBind();
            }
        }