void BindGrid() { CashReleaseManager oManager = new CashReleaseManager(); oManager.ConnectionString = this.ConnectionString; oManager.Open(); gridControl1.DataSource = oManager.GetCashReleased(); gridControl1.Refresh(); oManager.Close(); }
void BindCashReleased(DateTime dFrom, DateTime dTo) { CashReleaseManager oManager = new CashReleaseManager(); oManager.ConnectionString = this.ConnectionString; oManager.Open(); DataTable dt = oManager.GetCashReleased(dFrom, dTo); gridControl4.DataSource = dt; gridControl4.Refresh(); gridView5.ExpandAllGroups(); oManager.Close(); }