コード例 #1
0
    protected void BindGrid()
    {
        DataTable Dtb = S.Insert_MKTPLANNING_MOU("SUBCATEGORY", DrpCategory.SelectedItem.Text, "", 0, 0, 0, Convert.ToInt32(DrpAcyear.SelectedValue));

        GrvGrid.DataSource = Dtb;
        GrvGrid.DataBind();
    }
コード例 #2
0
    public void BindGrid()
    {
        StudentRegistrationDAL S = new StudentRegistrationDAL();
        DataTable Dtb            = S.InsertLicenseRenewal(DrpCourseType.SelectedValue, DateTime.Now, DateTime.Now, txtDescription.Text.Trim(), txtRemarks.Text.Trim(),
                                                          0, "SELECT", 0);

        GrvGrid.DataSource = Dtb;
        GrvGrid.DataBind();
    }
コード例 #3
0
    private void ExportToExcel(DataTable Dtb, string Name)
    {
        GrvGrid.DataSource = Dtb;
        GrvGrid.DataBind();

        string result = ToExcel(GrvGrid.DataSource, Name);

        ExportToExcel(result, Name);
    }
コード例 #4
0
    private void ExportToExcel(DataTable Dtb)
    {
        GrvGrid.DataSource = Dtb;
        GrvGrid.DataBind();

        string    result = ExcelUtility.ToExcel(GrvGrid.DataSource);
        DataTable Dt     = (DataTable)GrvGrid.DataSource;

        ExcelUtility.ExportToExcel1(Dt);
    }