コード例 #1
0
    protected void BindDepartmentView()
    {
        dt = dl.GetTotalDepartmentInGrid();

        int row = dt.table.Rows.Count;
        int page;

        if (row % 10 == 0)
        {
            page = row / 10;
        }
        else
        {
            page = row / 10;
            page = page + 1;
        }
        if (Session["language"].ToString() == "en-GB")
        {
            lbl_count.Text = "Total Department = " + row.ToString() + "  and  Total page = " + page.ToString() + "";
        }
        else
        {
            lbl_count.Text = "कुल विभाग = " + row.ToString() + "  और  कुल पेज = " + page.ToString() + "";
        }
        //lbl_count.Text = "Total Rows = " + row.ToString() + "  and  Total page = " + page.ToString() + "";
        GV_Department.DataSource = dt.table;
        GV_Department.DataBind();
    }
コード例 #2
0
    protected void BindDepartmentView()
    {
        dt = dl.GetTotalDepartmentInGrid();

        int row = dt.table.Rows.Count;
        int page;

        if (row % 10 == 0)
        {
            page = row / 10;
        }
        else
        {
            page = row / 10;
            page = page + 1;
        }

        lbl_count.Text           = "Total Rows = " + row.ToString() + "  and  Total page = " + page.ToString() + "";
        GV_Department.DataSource = dt.table;
        GV_Department.DataBind();
    }