Пример #1
0
        private void NapuniFormuZaEditiranje()
        {
            BusinessLogic.Obracuni Obracuni = new BusinessLogic.Obracuni();
            DataRow shema = Obracuni.GetShemaById(ID);

            txtNaziv.Text           = shema["Naziv"].ToString();
            ucbDokumentiShema.Value = shema["IDDOKUMENT"].ToString();

            pShemaKontiranja = Obracuni.GetShemaKontiranjeByID(ID);

            ugdShema.DataSource = pShemaKontiranja;
            ugdShema.DataBind();
            ugdShema.UpdateData();

            Utils.Tools.UltraGridStyling(ugdShema);

            if (ugdShema.DisplayLayout.Bands.Count > 0)
            {
                if (ugdShema.DisplayLayout.Bands[0].Columns.Count > 0)
                {
                    ugdShema.DisplayLayout.Bands[0].Columns[0].Hidden = true;
                    ugdShema.DisplayLayout.Bands[0].Columns[1].Hidden = true;
                    ugdShema.DisplayLayout.Bands[0].Columns[2].Hidden = true;
                    ugdShema.DisplayLayout.Bands[0].Columns[3].Hidden = true;
                    ugdShema.DisplayLayout.Bands[0].Columns[4].Hidden = true;
                }
            }
        }