Exemplo n.º 1
0
        public TonKho()
        {
            InitializeComponent();
            grvroottonkho.GroupPanelText = "Hãy kéo thả các cột vào đây";
            grvcttonkho.DataSource       = tonKhoBUS.LayThongTinTonKho();
            GridGroupSummaryItem item = new GridGroupSummaryItem();

            item.FieldName = "SoLuong";
            item.ShowInGroupColumnFooter = grvroottonkho.Columns["SoLuong"];
            item.SummaryType             = DevExpress.Data.SummaryItemType.Sum;
            item.DisplayFormat           = "{0}";
            grvroottonkho.GroupSummary.Add(item);
            try
            {
                NhatKyHeThongBUS.ThemNhatKyHeThong("Tồn Kho", "Xem", "");
            }
            catch
            {
            }
        }