示例#1
0
        private void grvroottct_MasterRowGetChildList(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowGetChildListEventArgs e)
        {
            GridView            view = sender as GridView;
            TheoChungTu_PBH_DTO cat  = view.GetRow(e.RowHandle) as TheoChungTu_PBH_DTO;

            if (cat != null)
            {
                e.ChildList = lst_pbhct.Where(x => x.MaPhieuBanHang == cat.ChungTu).ToList();
            }
        }
示例#2
0
        private void grvroottct_MasterRowEmpty(object sender, DevExpress.XtraGrid.Views.Grid.MasterRowEmptyEventArgs e)
        {
            GridView            view = sender as GridView;
            TheoChungTu_PBH_DTO cat  = view.GetRow(e.RowHandle) as TheoChungTu_PBH_DTO;

            if (cat != null)
            {
                e.IsEmpty = !lst_pbhct.Any(x => x.MaPhieuBanHang == cat.ChungTu);
            }
        }