public frmAccountGroup()
        {
            InitializeComponent();
            this.DataContext = data;

            RptAccount.SetDisplayMode(DisplayMode.PrintLayout);
            onClientEvents();
        }
        private void LoadReport()
        {
            try
            {
                RptAccount.Reset();
                ReportDataSource data  = new ReportDataSource("AccountGroup", BLL.AccountGroup.toList.Where(x => AccountGroup_Filter(x)).ToList());
                ReportDataSource data1 = new ReportDataSource("CompanyDetail", BLL.CompanyDetail.toList.Where(x => x.Id == BLL.UserAccount.Company.Id).ToList());
                RptAccount.LocalReport.DataSources.Add(data);
                RptAccount.LocalReport.DataSources.Add(data1);
                RptAccount.LocalReport.ReportPath = @"rpt\master\rptAccountGroup.rdlc";

                RptAccount.RefreshReport();
            }
            catch (Exception ex)
            {
            }
        }