Exemple #1
0
        protected void GridviewBind()
        {
            DataTable table = new DataTable();

            ds = new DataSet();

            ppmsB = new ProjectPerGroupB();
            ds    = ppmsB.GetPerformanceOverRideDetails(Convert.ToInt32(drpLoanNumber.SelectedValue),
                                                        drpSector.SelectedValue, drpState.SelectedValue, drpAgency.SelectedValue,
                                                        Convert.ToInt32(drpFromYear.SelectedIndex == 0 ? drpFromYear.SelectedValue : drpFromYear.SelectedItem.Text),
                                                        Convert.ToInt32(drpFromQuarter.SelectedValue));


            grdOverrideGroupB.DataSource = ds;
            grdOverrideGroupB.DataBind();
            dt = ds.Tables[0];
            Session[clsConstant.SESS_TABLE] = dt;
        }
Exemple #2
0
        private DataTable GetDataSource()
        {
            DataTable table = new DataTable();

            ds    = new DataSet();
            ppmsB = new ProjectPerGroupB();
            ds    = ppmsB.GetPerformanceOverRideDetails(Convert.ToInt32(drpLoanNumber.SelectedValue), drpSector.SelectedValue, drpState.SelectedValue, drpAgency.SelectedValue,
                                                        Convert.ToInt32(drpFromYear.SelectedValue), Convert.ToInt32(drpFromQuarter.SelectedValue));


            table = ds.Tables[0];
            grdOverrideGroupB.DataSource = ds;
            grdOverrideGroupB.DataBind();

            Session[clsConstant.SESS_TABLE] = table;

            return(table);
        }