Exemple #1
0
    protected void BindProgramItemInGrid()
    {
        string sortbycoloumn = (ViewState["SORTBYCOLOUMN"] == null) ? null : (ViewState["SORTBYCOLOUMN"].ToString());
        string sortdirection = null;

        if (ViewState["SORTDIRECTION"] != null)
        {
            sortdirection = ViewState["SORTDIRECTION"].ToString();
        }
        int     is_Fetch_Count           = ucCustomPagerProgram_List.isCountRecord;
        DataSet ds_ProgramList_Scheduled = BLL_LMS_Training.Get_Scheduled_Program_List((DataTable)DDLFleet.SelectedValues, (DataTable)DDLVessel.SelectedValues, UDFLib.ConvertStringToNull(txtProgramName.Text.Trim()), UDFLib.ConvertDateToNull(txtDuedateFrom.Text.Trim()), UDFLib.ConvertDateToNull(txtDuedateTo.Text), UDFLib.ConvertIntegerToNull(ddlProgramCategory.SelectedValue), ucCustomPagerProgram_List.CurrentPageIndex, ucCustomPagerProgram_List.PageSize, sortbycoloumn,
                                                                                       sortdirection, ref is_Fetch_Count);

        gvProgram_ListDetails.DataSource = ds_ProgramList_Scheduled;
        gvProgram_ListDetails.DataBind();
        if (ucCustomPagerProgram_List.isCountRecord == 1)
        {
            ucCustomPagerProgram_List.CountTotalRec = is_Fetch_Count.ToString();
            ucCustomPagerProgram_List.BuildPager();
        }
    }